-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
60 lines (46 loc) · 1.3 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
#SUBDIRS = tools
#
# we have non-standard install sub-targets
#
.phony: install-indep install-arch doc install-exec-hook install-release install-bin install-package 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
@echo "Done."
install-exec-hook: install-bin install-release
@echo "Done."
install-release: all
@echo "Done."
install-bin:
#
# 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
# minus the CVS directories
#
EXTRA_DIST = admin config include tools 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}