68 |
@make -s -C $(SRC) $@ |
@make -s -C $(SRC) $@ |
69 |
@make -s -C $(DOC) $@ |
@make -s -C $(DOC) $@ |
70 |
|
|
|
man: _minimum |
|
|
@echo " + making $@ ..." |
|
|
@make -C $(SRC) $@ |
|
|
|
|
|
html: _minimum |
|
|
@echo " + making $@ ..." |
|
|
@make -C $(DOC) $@ |
|
|
@make -C $(SRC) $@ |
|
|
|
|
|
dvi: _minimum |
|
|
@echo " + making $@ ..." |
|
|
@make -C $(SRC) $@ |
|
|
|
|
|
pdf: _minimum |
|
|
@echo " + making $@ ..." |
|
|
@make -C $(SRC) $@ |
|
|
|
|
|
ps: _minimum |
|
|
@echo " + making $@ ..." |
|
|
@make -C $(DOC) $@ |
|
|
|
|
71 |
doc-view: |
doc-view: |
72 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
73 |
mozilla file://`pwd`/doc/index.html |
mozilla file://`pwd`/doc/index.html |
98 |
@make -s -C $(DOC) $@ |
@make -s -C $(DOC) $@ |
99 |
@make -s -C $(SRC) $@ |
@make -s -C $(SRC) $@ |
100 |
|
|
101 |
dist: |
dist: _minimum |
102 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
103 |
@make version-dist |
@make version-dist |
104 |
@make _tarball-begin |
@make _tarball-begin |
106 |
@make _tarball-end |
@make _tarball-end |
107 |
@make clean-version |
@make clean-version |
108 |
|
|
109 |
nightbuild: |
nightbuild: _minimum |
110 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
111 |
@make _version-nightbuild |
@make _version-nightbuild |
112 |
@make _tarball-begin |
@make _tarball-begin |
133 |
@make -C $(TMP)/$(NAME)-`cat ./version` clean-version |
@make -C $(TMP)/$(NAME)-`cat ./version` clean-version |
134 |
@make -C $(TMP)/$(NAME)-`cat ./version` clean-cvs |
@make -C $(TMP)/$(NAME)-`cat ./version` clean-cvs |
135 |
@make -C $(TMP)/$(NAME)-`cat ./version` distclean |
@make -C $(TMP)/$(NAME)-`cat ./version` distclean |
136 |
@make -C $(TMP)/$(NAME)-`cat ./version` $(SRC)/configure |
@make -C $(TMP)/$(NAME)-`cat ./version` configure |
|
@make -C $(TMP)/$(NAME)-`cat ./version` _subdirs-makefiles |
|
137 |
@rm -Rf $(TMP)/$(NAME)-`cat ./version`/doc |
@rm -Rf $(TMP)/$(NAME)-`cat ./version`/doc |
138 |
@mv $(TMP)/$(NAME)_documentation.tar.bz2 $(TMP)/$(NAME)-`cat ./version` |
@mv $(TMP)/$(NAME)_documentation.tar.bz2 $(TMP)/$(NAME)-`cat ./version` |
139 |
@tar -C$(TMP)/$(NAME)-`cat ./version` -xjf \ |
@tar -C$(TMP)/$(NAME)-`cat ./version` -xjf \ |
150 |
$(NAME)-`cat ./version` |
$(NAME)-`cat ./version` |
151 |
@rm -Rf $(TMP) |
@rm -Rf $(TMP) |
152 |
|
|
153 |
dist-check: |
dist-check: _minimum |
154 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
155 |
@make dist version-dist _check-tarball clean-version |
@make dist version-dist _check-tarball clean-version |
156 |
|
|
157 |
nightbuild-check: |
nightbuild-check: _minimum |
158 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
159 |
@make nightbuild _version-nightbuild _check-tarball clean-version |
@make nightbuild _version-nightbuild _check-tarball clean-version |
160 |
|
|
170 |
|
|
171 |
# this rule removes the files used by cvs. It should not be used within a cvs |
# this rule removes the files used by cvs. It should not be used within a cvs |
172 |
# repository, but for a tarball creation only! |
# repository, but for a tarball creation only! |
173 |
clean-cvs: |
clean-cvs: _minimum |
174 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
175 |
@make -s -C $(DOC) $@ |
@make -s -C $(DOC) $@ |
176 |
@make -s -C $(SRC) $@ |
@make -s -C $(SRC) $@ |
183 |
@echo " You must use GNU make in order to compile LibML." |
@echo " You must use GNU make in order to compile LibML." |
184 |
@echo " Here are the available targets:" |
@echo " Here are the available targets:" |
185 |
@echo |
@echo |
|
@echo " (* main targets *) " |
|
|
@echo |
|
186 |
@echo " * all" |
@echo " * all" |
187 |
@echo " Builds both the bytecode and the optimized code libraries." |
@echo " Builds both the bytecode and the optimized code libraries." |
188 |
@echo " * install" |
@echo " * install" |
193 |
@echo " Builds the bytecode version of LibML." |
@echo " Builds the bytecode version of LibML." |
194 |
@echo " * opt" |
@echo " * opt" |
195 |
@echo " Builds the optimized version of LibML." |
@echo " Builds the optimized version of LibML." |
|
@echo " * doc" |
|
|
@echo " Generates the documentation (take a look at doc/index.html ...)." |
|
196 |
@echo " * clean" |
@echo " * clean" |
197 |
@echo " Cleans the unwanted compiled files." |
@echo " Cleans the unwanted compiled files." |
|
@echo " * help" |
|
|
@echo " Displays this help message." |
|
|
@echo |
|
|
@echo " (* secondary targets *) " |
|
|
@echo |
|
|
@echo " * re" |
|
|
@echo " alias for \`make clean all'" |
|
|
@echo " * interface" |
|
|
@echo " Compiles the .mli files (OCaml interfaces)." |
|
|
@echo " * man" |
|
|
@echo " Generates the man documentation." |
|
|
@echo " * html" |
|
|
@echo " Generates the html documentation." |
|
|
@echo " * dvi" |
|
|
@echo " Generates the dvi documentation." |
|
|
@echo " * pdf" |
|
|
@echo " Generates the pdf documentation." |
|
|
@echo " * ps" |
|
|
@echo " Generates the ps documentation." |
|
|
@echo " * clean-doc" |
|
|
@echo " Cleans all the generated documentation." |
|
|
@echo " * dist-clean and distclean" |
|
|
@echo " Not implemented yet." |
|
198 |
@echo " * check" |
@echo " * check" |
199 |
@echo " Runs the test suite." |
@echo " Runs the test suite." |
200 |
@echo " * dist" |
@echo " * help" |
201 |
@echo " Creates a tarball ready for distribution." |
@echo " Displays this help message." |
|
@echo " * nightbuild" |
|
|
@echo " Creates a nightbuild tarball." |
|
|
@echo " * dist-check" |
|
|
@echo " Creates a tarball ready for distribution and checks it." |
|
|
@echo " * nightbuild-check" |
|
|
@echo " Creates a nightbuild tarball and checks it." |
|
202 |
@echo |
@echo |
203 |
|
|
204 |
install: _minimum |
install: _minimum |
209 |
@echo " + making $@ ..." |
@echo " + making $@ ..." |
210 |
@make -C $(SRC) $@ |
@make -C $(SRC) $@ |
211 |
|
|
212 |
_minimum: $(SRC)/variables.Makefile $(SRC)/*/Makefile |
_minimum: $(SRC)/variables.Makefile |
|
|
|
|
$(SRC)/configure: $(SRC)/configure.in |
|
|
@echo " + generating $@ ..." |
|
|
@( cd $(SRC) && \ |
|
|
autoconf ) |
|
213 |
|
|
214 |
$(SRC)/variables.Makefile: $(SRC)/configure $(SRC)/variables.Makefile.in |
$(SRC)/variables.Makefile: $(SRC)/configure $(SRC)/variables.Makefile.in |
215 |
@echo " + generating $@ ..." |
@echo " + generating $@ ..." |
216 |
@( cd $(SRC) && ./configure ) |
@( cd $(SRC) && ./configure ) |
217 |
|
|
218 |
# subdirectories where a Makefile needs to be generated from $(SRC)/subdirs.Makefile |
configure: $(SRC)/configure |
|
SUBDIRS = "error init input learn misc networks propagate xml" |
|
219 |
|
|
220 |
_subdirs-makefiles: $(SRC)/*/Makefile |
$(SRC)/configure: $(SRC)/configure.in |
221 |
|
@echo " + generating $@ ..." |
|
$(SRC)/*/Makefile: $(SRC)/subdirs.Makefile |
|
222 |
@( cd $(SRC) && \ |
@( cd $(SRC) && \ |
223 |
SUBDIRS=$(SUBDIRS) && \ |
autoconf ) |
|
for i in $$SUBDIRS; \ |
|
|
do \ |
|
|
REPLACED=`echo $$i | tr a-z A-Z` && \ |
|
|
echo " + Generating $$i/Makefile ..." && \ |
|
|
sed "s/SUBDIR_NAME/$$REPLACED/g" subdirs.Makefile > $$i/Makefile ; \ |
|
|
done ) |
|
224 |
|
|
225 |
_version-nightbuild: |
_version-nightbuild: |
226 |
@echo " + generating ./version ..." |
@echo " + generating ./version ..." |
239 |
@echo "archive(byte) = \"$(NAME).cma\"" >> $(SRC)/META |
@echo "archive(byte) = \"$(NAME).cma\"" >> $(SRC)/META |
240 |
@echo "archive(native) = \"$(NAME).cmxa\"" >> $(SRC)/META |
@echo "archive(native) = \"$(NAME).cmxa\"" >> $(SRC)/META |
241 |
|
|
242 |
.PHONY: doc help meta version |
.PHONY: doc help $(SRC)/META version-dist _version-nightbuild _minimum |