Makefile.am 2.26 KB
Newer Older
1
2
3
4
5
# tarot implements the rules of the tarot game
# Copyright (C) 2017, 2018, 2019  Vivien Kraus

# 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
6
# the Free Software Foundation, version 3 of the License.
7
8
9
10
11
#
# 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.
12
#
13
14
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15

Vivien Kraus's avatar
Vivien Kraus committed
16
SUBDIRS = po lib guile-config-task releases-task early-built-sources-task libtarot-task programs-task .
Vivien Kraus's avatar
Vivien Kraus committed
17

Vivien Kraus's avatar
Vivien Kraus committed
18
include defaults.am
19

Vivien Kraus's avatar
Vivien Kraus committed
20
ACLOCAL_AMFLAGS = -I m4
Vivien Kraus's avatar
Vivien Kraus committed
21
22
AUTOMAKE_OPTIONS = subdir-objects
dist_pkgdata_DATA += COPYING
23
EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html po/Rules-automake .gitignore
Vivien Kraus's avatar
Vivien Kraus committed
24
25
26

include desktop.am
include version-gen.am
Vivien Kraus's avatar
Vivien Kraus committed
27
include releases.am
Vivien Kraus's avatar
Vivien Kraus committed
28
29
30
31
32
33
34
include bootstrapping.am
include program-tests.am
include valgrind.am
include standard-files.am
include gitlab-ci.am
include distcheck.am
include indent.am
Vivien Kraus's avatar
Vivien Kraus committed
35
include appstream.am
36
37
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
38
include games/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
39
include icon/Makefile.am
40
include gnulib.am
Vivien Kraus's avatar
Vivien Kraus committed
41
include screenshots/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
42
include nsi/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
43
include debian/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
44
include flatpak/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
45
include model/Makefile.am
46
include git-check.am
47
include copyright/Makefile.am
48
include guix/Makefile.am
49

Vivien Kraus's avatar
Vivien Kraus committed
50
51
52
AM_CPPFLAGS += \
  -DLOCALEDIR="\"$(localedir)\"" \
  -DSYSCONFDIR="\"$(sysconfdir)\"" \
53
  -DDATADIR="\"$(datadir)\"" \
Vivien Kraus's avatar
Vivien Kraus committed
54
55
  -DABS_TOP_SRCDIR="\"$(abs_top_srcdir)\"" \
  -I. -I$(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
56
  -Ilib -I$(srcdir)/lib \
Vivien Kraus's avatar
Vivien Kraus committed
57
58
  -DLIBTAROT_VERSION_INFO="\"$(LIBTOOL_CURRENT):$(LIBTOOL_REVISION):$(LIBTOOL_AGE)\""
AM_YFLAGS = -d
Vivien Kraus's avatar
Vivien Kraus committed
59
60
61
AM_CFLAGS += \
  $(NETTLE_CFLAGS) $(XML_CFLAGS)
AM_LDADD += \
62
  $(NETTLE_LIBS) $(XML_LIBS) $(GUILE_LIBS)
Vivien Kraus's avatar
Vivien Kraus committed
63
64
65
66
67
68

if WITH_GOBJECT
AM_CFLAGS += $(GOBJECT_CFLAGS)
AM_LDADD += $(GOBJECT_LIBS)
endif # WITH_GOBJECT

Vivien Kraus's avatar
Vivien Kraus committed
69
70
71
72
73
74
75
.PHONY: build-early-built-sources build-libtarot build-programs
build-early-built-sources:
	$(MAKE) $(AM_MAKEFLAGS) $(BUILT_SOURCES)
build-libtarot:
	$(MAKE) $(AM_MAKEFLAGS) src/libtarot/libtarot.la
build-programs:
	$(MAKE) $(AM_MAKEFLAGS) $(bin_PROGRAMS)