Makefile.am 2.44 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# 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
# 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.
13
#
14
15
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16

Vivien Kraus's avatar
Vivien Kraus committed
17
SUBDIRS = po lib
Vivien Kraus's avatar
Vivien Kraus committed
18

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

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

include desktop.am
include version-gen.am
Vivien Kraus's avatar
Vivien Kraus committed
28
include releases.am
Vivien Kraus's avatar
Vivien Kraus committed
29
30
31
32
33
34
35
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
36
include appstream.am
37
38
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
39
include games/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
40
include icon/Makefile.am
41
include gnulib.am
Vivien Kraus's avatar
Vivien Kraus committed
42
include screenshots/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
43
include nsi/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
44
include debian/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
45
include flatpak/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
46
include model/Makefile.am
47
include git-check.am
48
include copyright/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
62
AM_CFLAGS += \
  $(NETTLE_CFLAGS) $(XML_CFLAGS)
AM_LDADD += \
  $(NETTLE_LIBS) $(XML_LIBS)
63
BUILT_SOURCES += tuneconfig.h
Vivien Kraus's avatar
Vivien Kraus committed
64
65
66
67
68
69

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

70
71
72
73
74
75
PRIO_1 = lib/libgnu.la
PRIO_2 = eu.planete_kraus.Tarot.appdata.xml.in releases.xml
PRIO_3 = src/libtarot/cards/tarot/cards_defs.h \
  src/libtarot/cards/tarot/cards_private_impl.h \
  $(dist_model_DATA:.model=.h) \
  tuneconfig.h
Vivien Kraus's avatar
Vivien Kraus committed
76
PRIO_4 = src/libtarot/semantic-api/api.xml
77
PRIO_5 = $(bin_PROGRAMS)
78

Vivien Kraus's avatar
Vivien Kraus committed
79
80
.PHONY: safe
safe:
81
82
83
84
85
	$(MAKE) $(AM_MAKEFLAGS) $(PRIO_1)
	$(MAKE) $(AM_MAKEFLAGS) $(PRIO_2)
	$(MAKE) $(AM_MAKEFLAGS) $(PRIO_3)
	$(MAKE) $(AM_MAKEFLAGS) $(PRIO_4)
	$(MAKE) $(AM_MAKEFLAGS) $(PRIO_5)