"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "targets.mak":
2.4-release_vs_2.5.0-release.
1 ###########################################################################
2 ## ##
3 ## Centre for Speech Technology Research ##
4 ## University of Edinburgh, UK ##
5 ## Copyright (c) 1996 ##
6 ## All Rights Reserved. ##
7 ## ##
8 ## Permission is hereby granted, free of charge, to use and distribute ##
9 ## this software and its documentation without restriction, including ##
10 ## without limitation the rights to use, copy, modify, merge, publish, ##
11 ## distribute, sublicense, and/or sell copies of this work, and to ##
12 ## permit persons to whom this work is furnished to do so, subject to ##
13 ## the following conditions: ##
14 ## 1. The code must retain the above copyright notice, this list of ##
15 ## conditions and the following disclaimer. ##
16 ## 2. Any modifications must be clearly marked as such. ##
17 ## 3. Original authors' names are not deleted. ##
18 ## 4. The authors' names are not used to endorse or promote products ##
19 ## derived from this software without specific prior written ##
20 ## permission. ##
21 ## ##
22 ## THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK ##
23 ## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
24 ## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
25 ## SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE ##
26 ## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
27 ## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
28 ## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
29 ## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
30 ## THIS SOFTWARE. ##
31 ## ##
32 ###########################################################################
33 ## ##
34 ## Author: Richard Caley (rjc@cstr.ed.ac.uk) ##
35 ## Date: Wed Oct 1 1997 ##
36 ## -------------------------------------------------------------------- ##
37 ## Main make targets. ##
38 ## ##
39 ###########################################################################
40
41 ###########################################################################
42 ## utility targets
43
44 nothing:
45 @$(DO_NOTHING)
46
47 FORCE:
48
49 ###########################################################################
50 ## Main make rule for building
51
52 .sub_directories: $(SUBDIRECTORIES)
53
54 ${SUBDIRECTORIES} dummy_dir_name: FORCE
55 @if [ ! -f $@/Makefile ] ;\
56 then \
57 echo "Making new directory $(DIRNAME)/$@" ;\
58 mkdir $@ ;\
59 : $(subst XXX,$@,$(MAKE_RCSED_DIR)) ;\
60 $(MAKE) MADE_FROM_ABOVE=1 --no-print-directory -C $@ update ; \
61 fi
62 @ echo "Making in directory $(DIRNAME)/$@ ..."
63 @ ${MAKE} --no-print-directory -C $@ MADE_FROM_ABOVE=yes
64
65 ###########################################################################
66 ## Clean up junk
67
68 clean:
69 $(RM) -fr $(OBJS) $(JAVA_CLASSES_CLASS) $(ALL_EXECS) $(ALL_EXECS:%=%.mak) $(ALL_LIBS) $(LOCAL_CLEAN) make.depend .buildlib* *~
70 ifdef ALL_DIRS
71 @ for i in $(ALL_DIRS) ; \
72 do \
73 echo "clean in $(DIRNAME)/$$i" ;\
74 $(MAKE) --no-print-directory -C $$i clean ; \
75 done
76 endif
77 ifdef EXTRA_LIB_BUILD_DIRS
78 @ for i in $(EXTRA_LIB_BUILD_DIRS) ; \
79 do \
80 echo "clean in $(DIRNAME)/$$i" ;\
81 $(MAKE) --no-print-directory -C $$i clean ; \
82 done
83 endif
84
85 ###########################################################################
86 ## strip executables
87
88 strip: FORCE
89 @echo "strip in $(DIRNAME)"
90 ifdef ALL_EXECS
91 @ for i in $(ALL_EXECS) ; \
92 do \
93 $(STRIP) $$i ; \
94 done
95 else
96 @ echo > /dev/null
97 endif
98 ifdef ALL_DIRS
99 @ for i in $(ALL_DIRS) ; \
100 do \
101 $(MAKE) --no-print-directory -C $$i strip ; \
102 done
103 endif
104
105 ###########################################################################
106 ## Force remake of dependencies
107
108 ifndef DEPEND_DIRS
109 DEPEND_DIRS:=$(ALL_DIRS)
110 endif
111
112 depend: FORCE
113 @echo "depend in $(DIRNAME)"
114 @ $(RM) -f $(DEPEND)
115 @ # a little hack to get it to remake make.depend
116 @ $(MAKE) --no-print-directory nothing
117 ifeq ($(DEPEND_DIRS),)
118 else
119 @ for i in $(DEPEND_DIRS) ; \
120 do \
121 $(MAKE) --no-print-directory -C $$i depend ; \
122 done
123 endif
124
125 ###########################################################################
126 ## make a list of all files
127
128 file-list : FORCE
129 ifndef MADE_FROM_ABOVE
130 @$(RM) -f FileList
131 endif
132 ifdef FILES
133 @for i in $(FILES) ; \
134 do \
135 echo $(DIRNAME)/$$i ; \
136 done >>$(TOP)/FileList
137 endif
138 ifdef ALL_DIRS
139 @for i in $(ALL_DIRS) ; \
140 do \
141 echo "file-list in $(DIRNAME)/$$i" ;\
142 $(MAKE) --no-print-directory -C $$i MADE_FROM_ABOVE=1 NO_DEPEND=1 file-list ; \
143 done
144 endif
145
146 FileList: file-list
147
148 ###########################################################################
149 ## list things which doc++ should process
150
151 doc++files : FORCE
152 @echo "doc++files in $(DIRNAME)"
153 ifdef H
154 @for i in $(H) ; \
155 do \
156 echo $(DIRNAME)/$$i ; \
157 done >>$(TOP)/Doc++Files
158 endif
159 ifdef DOCXX_FILES
160 @for i in $(DOCXX_FILES) ; \
161 do \
162 echo $(DIRNAME)/$$i ; \
163 done >>$(TOP)/Doc++Files
164 endif
165 ifdef ALL_DIRS
166 @for i in $(ALL_DIRS) ; \
167 do \
168 $(MAKE) MADE_FROM_ABOVE=1 --no-print-directory -C $$i doc++files ; \
169 done
170 endif
171
172 ###########################################################################
173 ## Instalation rules
174
175 install_all: $(INSTALL) nothing
176 ifdef ALL_DIRS
177 @ for i in $(ALL_DIRS) ; \
178 do \
179 $(MAKE) --no-print-directory -C $$i install_all ; \
180 done
181 endif
182
183 ###########################################################################
184 ## Target for directories which should never be entered on a normal build.
185
186 not_a_build_dir: FORCE
187 @echo "+--------------------------------------------------"
188 @echo "| This is not a build directory
189 @echo "| plain make should never be run here
190 @echo "+--------------------------------------------------"
191 @exit 1
192
193 ###########################################################################
194 ## make info
195
196 info:
197 ifeq ($(TOP),.)
198 @$(RM) -f $(TOP)/config/modincludes* $(TOP)/config/system.mak
199 @$(MAKE) -C $(TOP) --no-print-directory real-info .config_error
200 else
201 @$(MAKE) -C $(TOP) --no-print-directory info
202 endif
203