Makefile.am 2.39 KB
Newer Older
1
2
# Makefile.am
#
Vivien Kraus's avatar
Vivien Kraus committed
3
# Copyright (C) 2017, 2018, 2019 Vivien Kraus <vivien@planete-kraus.eu>
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 
#  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
Vivien Kraus's avatar
Vivien Kraus committed
20

Vivien Kraus's avatar
Vivien Kraus committed
21
include defaults.am
22

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

include desktop.am
include version-gen.am
Vivien Kraus's avatar
Vivien Kraus committed
30
include releases.am
Vivien Kraus's avatar
Vivien Kraus committed
31
32
33
34
35
36
37
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
38
include appstream.am
39
40
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
41
include games/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
42
include icon/Makefile.am
43
include gnulib.am
Vivien Kraus's avatar
Vivien Kraus committed
44
include screenshots/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
45
include nsi/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
46
include debian/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
47
include flatpak/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
48
include model/Makefile.am
49
include git-check.am
50

Vivien Kraus's avatar
Vivien Kraus committed
51
52
53
54
55
AM_CPPFLAGS += \
  -DLOCALEDIR="\"$(localedir)\"" \
  -DSYSCONFDIR="\"$(sysconfdir)\"" \
  -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)