From: <nuc...@us...> - 2008-02-23 03:33:38
|
Revision: 5034 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5034&view=rev Author: nuclear_eclipse Date: 2008-02-22 19:33:35 -0800 (Fri, 22 Feb 2008) Log Message: ----------- Updated admin manual to use new Makefile template. Modified Paths: -------------- trunk/mantisbt/docbook/adminguide/en/Makefile Modified: trunk/mantisbt/docbook/adminguide/en/Makefile =================================================================== --- trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 03:33:26 UTC (rev 5033) +++ trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 03:33:35 UTC (rev 5034) @@ -10,10 +10,15 @@ # - Images should be in png format # +# Output directory +BUILD_DIR:=build +# Installation directory +INSTALL_DIR:=install + # Book name: will be used to build the input filename ($BOOK.sgml) # and the output filename ($BOOK.html, $BOOK.pdf and so on) -BOOK=administration_guide +BOOK:=administration_guide # Stylesheet name. Original file from: # /usr/share/sgml/docbook/utils-0.6.11/docbook-utils.dsl @@ -30,17 +35,17 @@ all: html pdf #all: html html_onefile text pdf ps sgml.gz html.tar.gz -html: $(BOOK)/$(BOOK).html +html: $(BUILD_DIR)/$(BOOK)/$(BOOK).html -html_onefile: $(BOOK).html +html_onefile: $(BUILD_DIR)/$(BOOK).html -pdf: $(BOOK).pdf +pdf: $(BUILD_DIR)/$(BOOK).pdf -ps: $(BOOK).ps +ps: $(BUILD_DIR)/$(BOOK).ps -rtf: $(BOOK).rtf +rtf: $(BUILD_DIR)/$(BOOK).rtf -text: $(BOOK).txt +text: $(BUILD_DIR)/$(BOOK).txt builddate: echo -n $$(LANG="en_US";date "+%e %B %Y") > $@ @@ -51,24 +56,24 @@ gzip -f $$i.tar; \ done; ) -$(BOOK)/$(BOOK).html: $(FILES) $(IMAGES) - jw -d $(STYLE)#html -f docbook -b html -o $(BOOK) $< - -cp -r images $(BOOK)/ +$(BUILD_DIR)/$(BOOK)/$(BOOK).html: $(FILES) $(IMAGES) + jw -d $(STYLE)#html -f docbook -b html -o $(BUILD_DIR)/$(BOOK) $< + -cp -r images $(BUILD_DIR)/$(BOOK)/ -$(BOOK).pdf: $(FILES) $(IMAGES) - jw -d $(STYLE)#print -f docbook -b pdf $< +$(BUILD_DIR)/$(BOOK).pdf: $(FILES) $(IMAGES) + jw -d $(STYLE)#print -f docbook -b pdf -o $(BUILD_DIR) $< -$(BOOK).html: $(FILES) $(IMAGES) - jw -d $(STYLE)#html -f docbook -b html -u $< +$(BUILD_DIR)/$(BOOK).html: $(FILES) $(IMAGES) + jw -d $(STYLE)#html -f docbook -b html -o $(BUILD_DIR) -u $< -$(BOOK).ps: $(FILES) $(EPSS) - jw -d $(STYLE) -f docbook -b ps $< +$(BUILD_DIR)/$(BOOK).ps: $(FILES) $(EPSS) + jw -d $(STYLE) -f docbook -b ps -o $(BUILD_DIR) $< -$(BOOK).rtf: $(FILES) $(IMAGES) - jw -d $(STYLE) -f docbook -b rtf $< +$(BUILD_DIR)/$(BOOK).rtf: $(FILES) $(IMAGES) + jw -d $(STYLE) -f docbook -b rtf -o $(BUILD_DIR) $< -$(BOOK).txt: $(FILES) - jw -f docbook -b txt $< +$(BUILD_DIR)/$(BOOK).txt: $(FILES) + jw -f docbook -b txt -o $(BUILD_DIR) $< # pattern rules to convert PNGs to EPS # @@ -76,15 +81,19 @@ pngtopnm $< | pnmtops -noturn > $@ -.PHONY: valid clean dist help +.PHONY: valid install clean dist help valid: nsgmls -s $(BOOK).sgml +install: + -mkdir -p $(INSTALL_DIR) + -cp -r $(BUILD_DIR)/$(BOOK) $(BUILD_DIR)/$(BOOK).pdf $(BUILD_DIR)/$(BOOK).html $(BUILD_DIR)/$(BOOK).ps $(BUILD_DIR)/$(BOOK).rtf $(BUILD_DIR)/$(BOOK).txt $(INSTALL_DIR) + clean: -$(RM) *.log *.dvi *.aux *.tex *.out -$(RM) $(GENERATED_IMG) builddate - -$(RM) -r $(BOOK) - -$(RM) $(BOOK).html $(BOOK).ps $(BOOK).pdf $(BOOK).rtf $(BOOK).txt + -$(RM) -r $(BUILD_DIR)/$(BOOK) + -$(RM) $(BUILD_DIR)/$(BOOK).html $(BUILD_DIR)/$(BOOK).ps $(BUILD_DIR)/$(BOOK).pdf $(BUILD_DIR)/$(BOOK).rtf $(BUILD_DIR)/$(BOOK).txt # Rebuild everything dist: clean all This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2008-02-23 09:23:37
|
Revision: 5037 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5037&view=rev Author: martinfuchs Date: 2008-02-23 01:23:20 -0800 (Sat, 23 Feb 2008) Log Message: ----------- automatically create build directory Modified Paths: -------------- trunk/mantisbt/docbook/adminguide/en/Makefile Modified: trunk/mantisbt/docbook/adminguide/en/Makefile =================================================================== --- trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 05:27:28 UTC (rev 5036) +++ trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 09:23:20 UTC (rev 5037) @@ -25,7 +25,7 @@ # STYLE=stylesheet.dsl -FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) builddate +FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) build builddate IMAGES:=$(wildcard images/*.png) EPSS:=$(IMAGES:.png=.eps) @@ -47,6 +47,9 @@ text: $(BUILD_DIR)/$(BOOK).txt +$(BUILD_DIR): + mkdir -p $@ + builddate: echo -n $$(LANG="en_US";date "+%e %B %Y") > $@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2008-02-23 09:35:14
|
Revision: 5040 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5040&view=rev Author: martinfuchs Date: 2008-02-23 01:35:01 -0800 (Sat, 23 Feb 2008) Log Message: ----------- create images subdirectory and don copy recursively to avoid copying .svn dirs Modified Paths: -------------- trunk/mantisbt/docbook/adminguide/en/Makefile Modified: trunk/mantisbt/docbook/adminguide/en/Makefile =================================================================== --- trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 09:24:37 UTC (rev 5039) +++ trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 09:35:01 UTC (rev 5040) @@ -25,7 +25,7 @@ # STYLE=stylesheet.dsl -FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) build builddate +FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) $(BUILD_DIR) $(BUILD_DIR)/images builddate IMAGES:=$(wildcard images/*.png) EPSS:=$(IMAGES:.png=.eps) @@ -47,8 +47,8 @@ text: $(BUILD_DIR)/$(BOOK).txt -$(BUILD_DIR): - mkdir -p $@ +$(BUILD_DIR) $(BUILD_DIR)/images: + mkdir -p $@/images builddate: echo -n $$(LANG="en_US";date "+%e %B %Y") > $@ @@ -61,7 +61,7 @@ $(BUILD_DIR)/$(BOOK)/$(BOOK).html: $(FILES) $(IMAGES) jw -d $(STYLE)#html -f docbook -b html -o $(BUILD_DIR)/$(BOOK) $< - -cp -r images $(BUILD_DIR)/$(BOOK)/ + -cp images/* $(BUILD_DIR)/$(BOOK)/images/ $(BUILD_DIR)/$(BOOK).pdf: $(FILES) $(IMAGES) jw -d $(STYLE)#print -f docbook -b pdf -o $(BUILD_DIR) $< This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2008-02-23 09:48:47
|
Revision: 5041 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5041&view=rev Author: martinfuchs Date: 2008-02-23 01:48:35 -0800 (Sat, 23 Feb 2008) Log Message: ----------- create correct images build directory Modified Paths: -------------- trunk/mantisbt/docbook/adminguide/en/Makefile Modified: trunk/mantisbt/docbook/adminguide/en/Makefile =================================================================== --- trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 09:35:01 UTC (rev 5040) +++ trunk/mantisbt/docbook/adminguide/en/Makefile 2008-02-23 09:48:35 UTC (rev 5041) @@ -25,7 +25,7 @@ # STYLE=stylesheet.dsl -FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) $(BUILD_DIR) $(BUILD_DIR)/images builddate +FILES:=$(BOOK).sgml $(wildcard *.sgml) $(STYLE) $(BUILD_DIR) builddate IMAGES:=$(wildcard images/*.png) EPSS:=$(IMAGES:.png=.eps) @@ -47,8 +47,8 @@ text: $(BUILD_DIR)/$(BOOK).txt -$(BUILD_DIR) $(BUILD_DIR)/images: - mkdir -p $@/images +$(BUILD_DIR): + mkdir -p $@ builddate: echo -n $$(LANG="en_US";date "+%e %B %Y") > $@ @@ -61,6 +61,7 @@ $(BUILD_DIR)/$(BOOK)/$(BOOK).html: $(FILES) $(IMAGES) jw -d $(STYLE)#html -f docbook -b html -o $(BUILD_DIR)/$(BOOK) $< + mkdir -p $(BUILD_DIR)/$(BOOK)/images -cp images/* $(BUILD_DIR)/$(BOOK)/images/ $(BUILD_DIR)/$(BOOK).pdf: $(FILES) $(IMAGES) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |