projects
/
aes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PDF target to Makefile
[aes.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
7e77240
..
61aff61
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-14,6
+14,8
@@
problem3: aes.o problem3.o
clean:
rm -f *.o aes_test problem2 problem3
clean:
rm -f *.o aes_test problem2 problem3
+ latexmk -C
+ rm -f homework.out p2_output.txt p3_output.txt
.cpp.o:
$(CC) $(CFLAGS) -c -o $@ $<
.cpp.o:
$(CC) $(CFLAGS) -c -o $@ $<
@@
-26,4
+28,10
@@
run_p2: problem2
run_p3: problem3
@./$<
run_p3: problem3
@./$<
-.PHONY: run all clean
+pdf: homework.tex problem2 problem3
+ ./problem2 < Problem2.in > p2_output.txt
+ ./problem3 > p3_output.txt
+ @rm -f homework.pdf
+ latexmk -pdf homework.tex
+
+.PHONY: run all clean pdf