-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (59 loc) · 1.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cppflags = -std=c++11 -Wall -Werror
#Make all targets EXCEPT pdf since pdflatex is freakin' huge
simple: doc exec
#Make all targets
all: simple pdf
install:
mkdir /usr/share/shunit.d
cp ./shunit.d/* /usr/share/shunit.d/
mkdir /usr/share/doc/shunit
cp -rf ./sample_tests /usr/share/doc/shunit
cp COPYING /usr/share/doc/shunit
cp -rf ./doc/* /usr/share/doc/shunit
cp Makefile /usr/share/doc/shunit
cp shu.sh /usr/bin/
cp shpp.sh /usr/bin/
ln -s ./shu.sh /usr/bin/shu
ln -s ./shpp.sh /usr/bin/shpp
cp shellunit-out-pretty /usr/bin
cp shellunit-out-junit /usr/bin
cp shellunit.conf /etc/shellunit.conf
remove:
-rm -rfv /usr/share/shunit.d
-rm -rfv /usr/share/doc/shunit
-rm /usr/bin/shu
-rm /usr/bin/shu.sh
-rm /usr/bin/shpp
-rm /usr/bin/shpp.sh
-rm /usr/bin/shellunit-out-pretty
-rm /usr/bin/shellunit-out-junit
-rm /etc/shellunit.conf
clean:
-rm ./doc/*.pdf
-rm ./doc/*.epub
-rm *.o
-rm shellunit-out-pretty
-rm shellunit-out-junit
#
#Executables
#
exec: shellunit-out-pretty shellunit-out-junit
shellunit-out-junit: shellunit-out-junit.cpp
c++ $(cppflags) -o $@ $^
shellunit-out-pretty: shellunit-out-pretty.cpp
c++ $(cppflags) -o $@ $^
#
#Documentation
#
doc: html epub
epub: doc/readme.epub
doc/readme.epub: doc/readme.mdn
pandoc -f markdown $^ -o $@
pdf: doc/readme.pdf
doc/readme.pdf: doc/readme.mdn
pandoc -f markdown $^ -o $@
html: doc/readme.html
doc/readme.html: doc/readme.mdn
markdown $^ > $@
quickstart:
cd doc && ./mkdoc.sh > doc.html && cd ..