forked from RTcmix/RTcmix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
123 lines (97 loc) · 3.06 KB
/
Makefile
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
################################################################################
# You shouldn't need to edit this file. Edit site.conf instead.
################################################################################
include makefile.conf
BASE = insts/base
ifeq ($(BUILDTYPE), STANDALONE)
DIRS = include genlib src insts utils apps docs snd
else
DIRS = include genlib insts src
endif
all: install_dirs $(DIRS)
.NOTPARALLEL::
$(DIRS)::
@echo "making all ..."
$(MAKE) $(MFLAGS) -C $@
@echo "done"
standalone::
@echo "making standalone ..."
@cd insts; $(MAKE) $(MFLAGS) standalone
@echo "done."; echo ""
############################################################# make install ###
install: install_dirs
@echo "beginning install..."
@for DIR in $(DIRS); \
do \
( cd $$DIR; $(MAKE) $(MFLAGS) install ); \
done
@echo "install done."; echo ""
base_install:
@echo "beginning base_install..."
@cd $(BASE); $(MAKE) $(MFLAGS) install;
@echo "base_install done."; echo ""
dso_install:
@echo "beginning dso_install..."
cd insts; $(MAKE) $(MFLAGS) dso_install;
@echo "dso_install done."; echo ""
standalone_install::
@echo "beginning standalone_install..."
@cd insts; $(MAKE) $(MFLAGS) standalone_install;
@echo "standalone_install done."; echo ""
install_dirs::
@if test ! -d $(LIBDIR); then mkdir $(LIBDIR); fi;
@if test ! -d $(LIBDESTDIR); then mkdir $(LIBDESTDIR); fi;
########################################################### make uninstall ###
uninstall::
@echo "beginning uninstall..."
@for DIR in $(DIRS); \
do \
( cd $$DIR; $(MAKE) $(MFLAGS) uninstall ); \
done
@echo "uninstall done."; echo ""
dso_uninstall:
@echo "beginning dso_uninstall..."
@cd insts; $(MAKE) $(MFLAGS) dso_uninstall;
@echo "dso_uninstall done."; echo ""
standalone_uninstall::
@echo "beginning standalone_uninstall..."
@cd insts; $(MAKE) $(MFLAGS) standalone_uninstall;
@echo "standalone_uninstall done."; echo ""
############################################################### make depend ##
depend::
@for DIR in $(DIRS); \
do \
( cd $$DIR; echo "making depend in $$DIR..."; \
$(RM) depend; \
$(MAKE) $(MFLAGS) depend ); \
done
############################################################### make clean ###
clean::
@for DIR in $(DIRS); \
do \
( cd $$DIR; echo "making clean in $$DIR..."; \
$(MAKE) $(MFLAGS) clean ); \
done
( cd pkg/osx; echo "making clean in pkg/osx..." )
cleanall::
@for DIR in $(DIRS); \
do \
( cd $$DIR; echo "making cleanall in $$DIR..."; \
$(MAKE) $(MFLAGS) cleanall ); \
done
( cd pkg/osx; echo "making clean in pkg/osx..." )
# Make it clean for distribution or for moving to another system
distclean: cleanall cleanac
@cd insts; $(MAKE) $(MFLAGS) distclean;
@cd apps; $(MAKE) $(MFLAGS) distclean;
@find . -name depend -exec rm -f '{}' ';'
@$(RM) config.h
@$(RM) defs.conf
@$(RM) makefile.conf
####################################################### for maintainers only ###
configure: configure.ac
touch defs.conf
aclocal
autoconf
cleanac:
@$(RM) -r autom4te.cache config.log config.status config.cache