/[libml]/libml/Makefile
ViewVC logotype

Diff of /libml/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by srv89, Mon Nov 17 09:29:55 2003 UTC revision 1.10 by srv89, Mon Nov 24 17:19:35 2003 UTC
# Line 68  doc: _minimum Line 68  doc: _minimum
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
# Line 119  distclean dist-clean: _minimum _clean-de Line 98  distclean dist-clean: _minimum _clean-de
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
# Line 127  dist: Line 106  dist:
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
# Line 154  _tarball-end: Line 133  _tarball-end:
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 \
# Line 172  _tarball-end: Line 150  _tarball-end:
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    
# Line 192  _check-tarball: Line 170  _check-tarball:
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) $@
# Line 205  help: Line 183  help:
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"
# Line 217  help: Line 193  help:
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
# Line 264  uninstall: _minimum Line 209  uninstall: _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 ..."
# Line 307  $(SRC)/META: Line 239  $(SRC)/META:
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

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26