| 1 # |
1 # |
| 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| 3 # |
3 # |
| 4 # Copyright 2014 Mike Becker. All rights reserved. |
4 # Copyright 2015 Mike Becker. All rights reserved. |
| 5 # |
5 # |
| 6 # Redistribution and use in source and binary forms, with or without |
6 # Redistribution and use in source and binary forms, with or without |
| 7 # modification, are permitted provided that the following conditions are met: |
7 # modification, are permitted provided that the following conditions are met: |
| 8 # |
8 # |
| 9 # 1. Redistributions of source code must retain the above copyright |
9 # 1. Redistributions of source code must retain the above copyright |
| 35 |
35 |
| 36 build: |
36 build: |
| 37 $(MKDIR) build |
37 $(MKDIR) build |
| 38 |
38 |
| 39 test: compile |
39 test: compile |
| 40 ./build/$(BIN) $(ARGS) src/c2html.c -o build/code.html \ |
40 ./build/$(BIN) $(ARGS) test/ctestfile.c -o build/ctest.html \ |
| |
41 -H test/header.html -F test/footer.html |
| |
42 ./build/$(BIN) $(ARGS) -j test/javatestfile.java -o build/javatest.html \ |
| |
43 -H test/header.html -F test/footer.html |
| |
44 ./build/$(BIN) $(ARGS) test/bigtestfile.c -o build/bigtest.html \ |
| 41 -H test/header.html -F test/footer.html |
45 -H test/header.html -F test/footer.html |
| 42 |
46 |
| 43 test-java: compile |
|
| 44 ./build/$(BIN) $(ARGS) -j test/Game.java -o build/code.html \ |
|
| 45 -H test/header.html -F test/footer.html |
|
| 46 |
|
| 47 clean: |
47 clean: |
| 48 $(RM) -f -R build |
48 $(RM) -f -R build |