-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
81 lines (63 loc) · 1.97 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
#
# we have non-standard install sub-targets
#
.phony: install-indep install-arch doc install-exec-hook install-release install-bin install-package install-src print-release-name
#
# Targets used when making a .deb file
# WARNING: These targets assume that the $(DESTDIR) starts empty!!!
#
install-indep:
#
# Do install and install of package
#
install-arch: install
doc:
cd docs; make
install-exec-hook: install-bin install-release
@echo "Done."
install-release: all
@echo "Done."
install-bin:
#
# Install the source tree, and make it world-readable
#
install-src-public: install-src
chmod -R o+r $(DESTDIR)$(codedir)
find $(DESTDIR)$(codedir) -type d -exec chmod o+x {} \;
#
# This horrible sequence copies the source to $(codedir) and
# tries to make the ownershop and permissions reasonable
#
# To allow multiple users of the same group install the source
# with same group and group write permission as $(datadir)
#
install-src:
$(mkinstalldirs) $(DESTDIR)$(codedir)
rm -rf $(DESTDIR)$(codedir)/*
cp -r . $(DESTDIR)$(codedir)
chgrp --recursive --reference $(datadir) $(DESTDIR)$(codedir)
if [ `ls -ld $(datadir) | cut -b 6` = w ]; then chmod -R g+w $(DESTDIR)$(codedir); fi
make -C $(DESTDIR)$(codedir) clean
#
# This horrible sequence copies just the modules and other files needed to build
# models to $(codedir)
# It also removes the .svn subdirectories in the installed tree.
#
install-package:
@rm -rf $(DESTDIR)$(codedir)
$(mkinstalldirs) $(DESTDIR)$(codedir)
rsync -av --exclude .svn admin $(DESTDIR)$(codedir)
rsync -av --exclude .svn config $(DESTDIR)$(codedir)
rsync -av --exclude .svn modules $(DESTDIR)$(codedir)
##
# we also need to fix up the distribution to contain the whole source tree
#
EXTRA_DIST = admin config include Makefile changes
dist-hook:
make -C $(distdir) distclean
find $(distdir) -name CVS -depth -exec rm -rf {} \;
#
# Utility target to print the release being built
#
print-release-name:
@echo ${release}