Makefile.am 3.55 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Makefile.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
# 
#  This program is free software: you can redistribute it and/or
#  modify it under the terms of the GNU General Public License as
#  published by the Free Software Foundation, either version 3 of the
#  License, or (at your option) any later version.
# 
#  This program is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  General Public License for more details.
# 
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see
#  <http://www.gnu.org/licenses/>.

Vivien Kraus's avatar
Vivien Kraus committed
19
SUBDIRS = po lib-library
Vivien Kraus's avatar
Vivien Kraus committed
20

Vivien Kraus's avatar
Vivien Kraus committed
21
AUTOMAKE_OPTIONS = subdir-objects
22
bin_PROGRAMS =
23
bin_SCRIPTS =
24
25
26
27
28
29
dist_bin_SCRIPTS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
include_HEADERS =
check_PROGRAMS =
info_TEXINFOS =
Vivien Kraus's avatar
Vivien Kraus committed
30
dist_man_MANS =
31
32
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA =
33
34
pkgdatadir = $(datadir)/@PACKAGE@
pkgdata_SCRIPTS =
Vivien Kraus's avatar
Vivien Kraus committed
35
36
37
38
39
sysconf_DATA =
dist_sysconf_DATA =
tarotsysconfdir = $(sysconfdir)/tarot
tarotsysconf_DATA =
dist_tarotsysconf_DATA =
Vivien Kraus's avatar
Vivien Kraus committed
40
dist_pkgdata_DATA = COPYING
Vivien Kraus's avatar
Vivien Kraus committed
41
dist_html_DATA =
42
INDENTED =
43
TANGLED =
44
SUFFIXES =
Vivien Kraus's avatar
Vivien Kraus committed
45
46
dist_noinst_SCRIPTS = \
  autogen.sh \
Vivien Kraus's avatar
Vivien Kraus committed
47
  run-tarot.sh \
48
  build-aux/git-version-gen
49
nodist_noinst_DATA =
50

Vivien Kraus's avatar
Vivien Kraus committed
51
ACLOCAL_AMFLAGS = -I m4 -I lib-library/m4
52
EXTRA_DIST = \
Vivien Kraus's avatar
Vivien Kraus committed
53
54
  tarot.org \
  setup.el \
Vivien Kraus's avatar
Vivien Kraus committed
55
  AUTHORS.org \
Vivien Kraus's avatar
Vivien Kraus committed
56
57
58
59
  lib-library/m4/gnulib-cache.m4 \
  $(top_srcdir)/.version \
  .gitlab-ci.yml \
  .gitignore
Vivien Kraus's avatar
Vivien Kraus committed
60
61
BUILT_SOURCES = \
  $(top_srcdir)/.version
Vivien Kraus's avatar
Vivien Kraus committed
62
CLEANFILES =
63
AM_DISTCHECK_CONFIGURE_FLAGS = \
64
  --enable-silent-rules=yes
65
AM_CPPFLAGS = \
Vivien Kraus's avatar
Vivien Kraus committed
66
67
  -DLOCALEDIR="\"$(localedir)\"" \
  -DSYSCONFDIR="\"$(sysconfdir)\"" \
Vivien Kraus's avatar
Vivien Kraus committed
68
  -I. -I$(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
69
70
  -Ilib-library -I$(srcdir)/lib-library \
  -Ilib-program -I$(srcdir)/lib-program
71
AM_CFLAGS =
Vivien Kraus's avatar
Vivien Kraus committed
72
AM_YFLAGS = -d
Vivien Kraus's avatar
Vivien Kraus committed
73
AM_LIBS =
Vivien Kraus's avatar
Vivien Kraus committed
74
AM_LDADD = $(LTLIBINTL) $(LTLIBTHREAD) @INTL_MACOSX_LIBS@
75
76
# Texinfo -> html flags, overriden in doc/Makefile.am
AM_MAKEINFOHTMLFLAGS =
77
TESTS =
78
79
AM_TESTS_ENVIRONMENT = \
  LANG="C" \
Vivien Kraus's avatar
Vivien Kraus committed
80
  LD_LIBRARY_PATH="src/.libs:$$LD_LIBRARY_PATH" \
81
82
83
84
  GUILE_AUTO_COMPILE=0 \
  GUILE_LOAD_PATH="$(srcdir)/src/scm:src/scm:$$GUILE_LOAD_PATH" \
  GUILE_COMPILED_LOAD_PATH="src/scm:$$GUILE_COMPILED_LOAD_PATH" \
  $(LIBTOOL) --mode=execute
85
86
87
if HAVE_VALGRIND
AM_TESTS_ENVIRONMENT += $(VALGRIND) --tool=memcheck 
endif # HAVE_VALGRIND
88

Vivien Kraus's avatar
Vivien Kraus committed
89
90
91
92
TEST_EXTENSIONS = .tarot
TAROT_LOG_COMPILER = $(SHELL) $(top_srcdir)/run-tarot.sh
AM_TAROT_LOG_FLAGS =

Vivien Kraus's avatar
Vivien Kraus committed
93
include ci/Makefile.am
94
95
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
96
include games/Makefile.am
97

98
99
EXTRA_DIST += $(TANGLED)

100
TESTS += $(check_PROGRAMS)
101
102
indent_verbose = $(indent_verbose_@AM_V@)
indent_verbose_ = $(indent_verbose_@AM_DEFAULT_V@)
Vivien Kraus's avatar
Vivien Kraus committed
103
indent_verbose_0 = @echo "  INDENT   ";
104
105
.PHONY: indent
indent: $(INDENTED)
106
	$(indent_verbose) (cd $(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
107
	  && for file in $(INDENTED); do $(INDENT) --no-tabs $$file; done)
108
109
110
org_verbose = $(org_verbose_@AM_V@)
org_verbose_ = $(org_verbose_@AM_DEFAULT_V@)
org_verbose_0 = @echo "ORG-EXPORT $@";
Vivien Kraus's avatar
Vivien Kraus committed
111
README: %reldir%/tarot.org
Vivien Kraus's avatar
Vivien Kraus committed
112
113
114
115
	$(org_verbose) ($(EMACS) \
	  --batch -q \
	  -l "$(srcdir)/setup.el" \
	  --file "$(srcdir)/tarot.org" \
116
	  -f org-ascii-export-to-ascii \
Vivien Kraus's avatar
Vivien Kraus committed
117
	  && mv "$(srcdir)/tarot.txt" "$(srcdir)/README")
Vivien Kraus's avatar
Vivien Kraus committed
118
AUTHORS: %reldir%/AUTHORS.org
Vivien Kraus's avatar
Vivien Kraus committed
119
120
121
	$(org_verbose) ($(EMACS) \
	  --batch -q \
	  -l "$(srcdir)/setup.el" \
Vivien Kraus's avatar
Vivien Kraus committed
122
	  --file "$(srcdir)/AUTHORS.org" \
Vivien Kraus's avatar
Vivien Kraus committed
123
	  -f org-ascii-export-to-ascii \
Vivien Kraus's avatar
Vivien Kraus committed
124
125
126
127
128
	  && mv "$(srcdir)/AUTHORS.txt" "$(srcdir)/AUTHORS")
$(top_srcdir)/.version:
	$(AM_V_GEN) echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
	$(AM_V_GEN) echo $(VERSION) > $(distdir)/.tarball-version