Makefile.am 3.9 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
20
21
22
23
SUBDIRS = lib-library lib-program

if NEED_LIBOPTS
  SUBDIRS += $(LIBOPTS_DIR)
endif # NEED_LIBOPTS
Vivien Kraus's avatar
Vivien Kraus committed
24

Vivien Kraus's avatar
Vivien Kraus committed
25
AUTOMAKE_OPTIONS = subdir-objects
26
bin_PROGRAMS =
27
bin_SCRIPTS =
28
29
30
31
32
33
dist_bin_SCRIPTS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
include_HEADERS =
check_PROGRAMS =
info_TEXINFOS =
Vivien Kraus's avatar
Vivien Kraus committed
34
dist_man_MANS =
Vivien Kraus's avatar
Vivien Kraus committed
35
36
37
helpdir = $(datadir)/help
chelpdir = $(helpdir)/C
dist_chelp_DATA =
38
39
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA =
40
41
pkgdatadir = $(datadir)/@PACKAGE@
pkgdata_SCRIPTS =
Vivien Kraus's avatar
Vivien Kraus committed
42
43
44
45
46
sysconf_DATA =
dist_sysconf_DATA =
tarotsysconfdir = $(sysconfdir)/tarot
tarotsysconf_DATA =
dist_tarotsysconf_DATA =
Vivien Kraus's avatar
Vivien Kraus committed
47
dist_pkgdata_DATA = COPYING
Vivien Kraus's avatar
Vivien Kraus committed
48
dist_html_DATA =
49
INDENTED =
50
TANGLED =
51
SUFFIXES =
Vivien Kraus's avatar
Vivien Kraus committed
52
53
dist_noinst_SCRIPTS = \
  autogen.sh \
Vivien Kraus's avatar
Vivien Kraus committed
54
  run-tarot.sh \
Vivien Kraus's avatar
Vivien Kraus committed
55
  git-version-gen
56
nodist_noinst_DATA =
Vivien Kraus's avatar
Vivien Kraus committed
57
58
VALGRIND_SUPPRESSION_FILE = \
  valgrind.supp
59

Vivien Kraus's avatar
Vivien Kraus committed
60
ACLOCAL_AMFLAGS = -I m4 -I lib-library/m4 -I lib-program/m4
61
EXTRA_DIST = \
Vivien Kraus's avatar
Vivien Kraus committed
62
63
  tarot.org \
  setup.el \
Vivien Kraus's avatar
Vivien Kraus committed
64
  AUTHORS.org \
Vivien Kraus's avatar
Vivien Kraus committed
65
66
67
  lib-library/m4/gnulib-cache.m4 \
  $(top_srcdir)/.version \
  .gitlab-ci.yml \
Vivien Kraus's avatar
Vivien Kraus committed
68
69
70
  $(VALGRIND_SUPPRESSION_FILE) \
  eu.planete_kraus.Tarot.json \
  fix-libopts
Vivien Kraus's avatar
Vivien Kraus committed
71
72
BUILT_SOURCES = \
  $(top_srcdir)/.version
Vivien Kraus's avatar
Vivien Kraus committed
73
CLEANFILES =
74
AM_DISTCHECK_CONFIGURE_FLAGS = \
75
  --enable-silent-rules=yes
76
AM_CPPFLAGS = \
Vivien Kraus's avatar
Vivien Kraus committed
77
78
  -DLOCALEDIR="\"$(localedir)\"" \
  -DSYSCONFDIR="\"$(sysconfdir)\"" \
Vivien Kraus's avatar
Vivien Kraus committed
79
  -I. -I$(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
80
81
  -Ilib-library -I$(srcdir)/lib-library \
  -Ilib-program -I$(srcdir)/lib-program
82
AM_CFLAGS =
Vivien Kraus's avatar
Vivien Kraus committed
83
AM_YFLAGS = -d
Vivien Kraus's avatar
Vivien Kraus committed
84
AM_LIBS =
Vivien Kraus's avatar
Vivien Kraus committed
85
AM_LDADD =
86
87
# Texinfo -> html flags, overriden in doc/Makefile.am
AM_MAKEINFOHTMLFLAGS =
88
TESTS =
89
90
AM_TESTS_ENVIRONMENT = \
  LANG="C" \
Vivien Kraus's avatar
Vivien Kraus committed
91
  LD_LIBRARY_PATH="src/.libs:$$LD_LIBRARY_PATH" \
92
93
94
95
  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
96
if HAVE_VALGRIND
Vivien Kraus's avatar
Vivien Kraus committed
97
98
99
100
101
AM_TESTS_ENVIRONMENT += \
  $(VALGRIND) --tool=memcheck \
              --leak-check=full \
              --error-exitcode=42 \
              --suppressions=$(srcdir)/$(VALGRIND_SUPPRESSION_FILE)
102
endif # HAVE_VALGRIND
103

Vivien Kraus's avatar
Vivien Kraus committed
104
105
106
107
TEST_EXTENSIONS = .tarot
TAROT_LOG_COMPILER = $(SHELL) $(top_srcdir)/run-tarot.sh
AM_TAROT_LOG_FLAGS =

Vivien Kraus's avatar
Vivien Kraus committed
108
include ci/Makefile.am
109
110
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
111
include games/Makefile.am
112

113
114
EXTRA_DIST += $(TANGLED)

115
TESTS += $(check_PROGRAMS)
116
117
indent_verbose = $(indent_verbose_@AM_V@)
indent_verbose_ = $(indent_verbose_@AM_DEFAULT_V@)
Vivien Kraus's avatar
Vivien Kraus committed
118
indent_verbose_0 = @echo "  INDENT   ";
119
120
.PHONY: indent
indent: $(INDENTED)
121
	$(indent_verbose) (cd $(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
122
	  && for file in $(INDENTED); do $(INDENT) --no-tabs $$file; done)
123
124
125
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
126
README: %reldir%/tarot.org
Vivien Kraus's avatar
Vivien Kraus committed
127
128
129
130
	$(org_verbose) ($(EMACS) \
	  --batch -q \
	  -l "$(srcdir)/setup.el" \
	  --file "$(srcdir)/tarot.org" \
131
	  -f org-ascii-export-to-ascii \
Vivien Kraus's avatar
Vivien Kraus committed
132
	  && mv "$(srcdir)/tarot.txt" "$(srcdir)/README")
Vivien Kraus's avatar
Vivien Kraus committed
133
AUTHORS: %reldir%/AUTHORS.org
Vivien Kraus's avatar
Vivien Kraus committed
134
135
136
	$(org_verbose) ($(EMACS) \
	  --batch -q \
	  -l "$(srcdir)/setup.el" \
Vivien Kraus's avatar
Vivien Kraus committed
137
	  --file "$(srcdir)/AUTHORS.org" \
Vivien Kraus's avatar
Vivien Kraus committed
138
	  -f org-ascii-export-to-ascii \
Vivien Kraus's avatar
Vivien Kraus committed
139
140
141
142
143
	  && 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