# HG changeset patch # User Dennis Fink # Date 2014-07-16 00:25:15 # Node ID 6c6f821bb7a264216508d75d764fa70d164b3815 # Parent 8788dd64c1071714c9addc7c871abe15387073b4 Be able to override Outputfiles in Makefile diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ RST2ODT = rst2odt RST2HTML = rst2html ODTSTYLESHEET = ./Styles/styles.odt +ODTFIlE = Satzung.odt +HTMLFILE = Satzung.html + help: @echo "Please use \'make ' where is on of" @echo " html to make a HTML version" @@ -12,11 +15,11 @@ clean: -rm -rf Satzung.odt Satzung.html odt: - $(RST2ODT) --stylesheet=$(ODTSTYLESHEET) --no-sections --smart-quotes=yes --create-links $(MAINFILE) Satzung.odt + $(RST2ODT) --stylesheet=$(ODTSTYLESHEET) --no-sections --smart-quotes=yes --create-links $(MAINFILE) $(ODTFIlE) @echo @echo "Build finished. The ODT file is named Satzung.odt" html: - $(RST2HTML) --smart-quotes=yes --no-compact-list $(MAINFILE) Satzung.html + $(RST2HTML) --smart-quotes=yes --no-compact-list $(MAINFILE) $(MAINFILE) @echo @echo "Build finished. The HTML file is named Satzung.html"