-
Notifications
You must be signed in to change notification settings - Fork 86
/
Makefile.am
80 lines (70 loc) · 1.45 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
AUTOMAKE_OPTIONS = 1.6 dist-zip dist-bzip2 subdir-objects
ACLOCAL_AMFLAGS = -I m4
traversal_dirs = \
data \
include \
man \
package \
src
if BUILD_PLUGINS
PLUGINS=plugins
else
PLUGINS=
endif
SUBDIRS = \
$(traversal_dirs) \
$(PLUGINS)
DIST_SUBDIRS = \
$(traversal_dirs) \
m4 \
misc \
plugins \
tools \
MSVC \
Xcode
EXTRA_DIST = \
.editorconfig \
autogen.sh \
bzflag.spec \
COPYING.LGPL \
COPYING.MPL \
DEVINFO \
PORTING \
README.BeOS \
README.IRIX \
README.Linux \
README.MINGW32 \
README.macOS \
README.SOLARIS \
README.WINDOWS
DISTCLEANFILES = config.cache.*
MAINTAINERCLEANFILES = \
aclocal.m4 \
configure \
bzflag.spec \
INSTALL \
Makefile.in \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4
# delete files from m4 subdirectory here to prevent dependency problems
.PHONY: package
package:
cd package && $(MAKE) targets
# Remove unwanted files from the distribution.
# Ensure that all files in the repository are also in the distribution.
dist-hook:
find $(distdir) -type f \( -name config.log -o -name config.status \) -exec rm -f {} \;
find $(distdir) -type d \( -name .deps -o -name autom4te.cache \) -prune -exec rm -rf {} \;
missing=0 ; \
for file in `git ls-files | $(EGREP) -v '^\.git(hub/|ignore)'` ; do \
if test ! -e $(distdir)/$$file ; then \
missing=1 ; \
echo "MISSING FROM DIST: $$file" ; \
fi ; \
done ; \
if test "x$$missing" = "x1" ; then \
exit 1 ; \
fi