Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /docs/trunk/oodguide/Makefile [r8562] .. [r8563] Maximize Restore

  Switch to side-by-side view

--- a/docs/trunk/oodguide/Makefile
+++ b/docs/trunk/oodguide/Makefile
@@ -43,19 +43,23 @@
 
 all: pdf html
 
-pdf:
-	- rm -r tmp/en-US/pdf
+pdf: datepub svnrev
+	- rm -rf tmp/en-US/pdf
 	publican build --formats=pdf --langs=en-US
-	cd tmp/en-US/pdf; mv ooRexx*.pdf $(PRODUCT).pdf; cd ../../..
+	cd tmp/en-US/pdf; mv ooRexx*.pdf $(PRODUCT).pdf; cp $(PRODUCT).pdf ../../../; cd ../../..
 
-html:
-	- rm -r tmp/en-US/html
+html: datepub.tmp svnrev.tmp
+	- rm -rf tmp/en-US/html
 	publican build --formats=html --langs=en-US
 	cd tmp/en-US/html; zip -r $(PRODUCT)-html.zip *; cd ../../..
 
+svnrev:
+	svnversion > svnrev.tmp
 
+datepub:
+	date "+%A, %B %d, %Y" > datepub.tmp
 
 
 clean:
-	rm -f tmp
+	rm -fr tmp