-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
52 lines (40 loc) · 1.26 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
SUBDIRS = libperl tools
#
# we have non-standard install sub-targets
#
.phony: doc install-exec-hook install-release install-bin install-src
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
#
# we also need to fix up the distribution to contain the whole source tree
# minus the CVS directories
#
EXTRA_DIST = admin config include libperl tools Makefile changes
dist-hook:
make -C $(distdir) distclean
find $(distdir) -name CVS -depth -exec rm -rf {} \;