Makefile

changeset 22
f463693b5eeb
parent 21
537aec525835
child 23
f44a185b678b
--- a/Makefile	Thu Jan 23 09:19:37 2014 +0100
+++ b/Makefile	Thu Jan 23 14:17:06 2014 +0100
@@ -37,12 +37,12 @@
 	$(MKDIR) build
 	
 test: compile
-	./build/$(BIN) $(ARGS) src/c2html.c > build/body.html
-	cat test/header.html build/body.html test/footer.html > build/code.html
+	./build/$(BIN) $(ARGS) src/c2html.c -o build/code.html \
+	-H test/header.html -F test/footer.html
 
 test-java: compile
-	./build/$(BIN) $(ARGS) -j test/Game.java > build/body.html
-	cat test/jheader.html build/body.html test/footer.html > build/code.html
+	./build/$(BIN) $(ARGS) -j test/Game.java -o build/code.html \
+	-H test/header.html -F test/footer.html
 	
 clean:
 	$(RM) -f -R build

mercurial