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

# 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
16
17
18
19
20
21
22

AM_CPPFLAGS += -I $(srcdir)/%reldir% -I %reldir%

tarotinclude_HEADERS += %reldir%/tarot/features.h

src_libtarot_libtarot_la_SOURCES += \
  %reldir%/features.c \
  %reldir%/tarot/features_private.h \
23
  %reldir%/tarot/features_private_impl.h \
24
  $(MODEL_SOURCE_HEADER_FILES)
25
26
27

INTROSPECTED_SOURCES += %reldir%/features.c

Vivien Kraus's avatar
Vivien Kraus committed
28
29
30
31
32
33
34
35
36
dist_pkgdata_DATA += \
  %reldir%/features-header.txt \
  %reldir%/features-header.txt.in \
  %reldir%/features-header-encoded.txt \
  %reldir%/features-header-encoded.txt.in
MAINTAINERCLEANFILES += \
  $(srcdir)/%reldir%/features-header.txt \
  $(srcdir)/%reldir%/features-header-encoded.txt

37
38
$(srcdir)/%reldir%/tarot/features_private_impl.h: src/libtarot/cards/tarot/cards_private.h
$(srcdir)/%reldir%/features.c: src/libtarot/cards/tarot/cards_private.h
Vivien Kraus's avatar
Vivien Kraus committed
39
40
41
42
43
44
$(srcdir)/%reldir%/features-header.txt: $(srcdir)/%reldir%/features-header.txt.in .version
	$(AM_V_GEN) (echo '@relation tarot-$(VERSION)' ; cat $<) > $@-t
	@mv $@-t $@
$(srcdir)/%reldir%/features-header-encoded.txt: $(srcdir)/%reldir%/features-header-encoded.txt.in .version
	$(AM_V_GEN) (echo '@relation tarot-$(VERSION)-encoded' ; cat $<) > $@-t
	@mv $@-t $@