-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
83 lines (73 loc) · 1.55 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
81
82
83
AUTOMAKE_OPTIONS = 1.6 dist-zip dist-bzip2
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 = \
autogen.sh \
authors.xml \
bzflag.lsm \
bzflag.spec \
DEVINFO \
PORTING \
README.BeOS \
README.IRIX \
README.Linux \
README.MINGW32 \
README.MacOSX \
README.SDL \
README.SOLARIS \
README.WINDOWS \
README.XMINGW
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 {} \;
rm -f $(distdir)/src/other/ares/ares_build.h \
$(distdir)/src/other/curl/include/curl/curlbuild.h
missing=0 ; \
for file in `git ls-files | egrep -v '^src/other/|^\.gitignore'` ; 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