-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
57 lines (44 loc) · 1.14 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
# OS detected
ifeq ($(OS),Windows_NT)
ifneq ($(findstring .exe,$(SHELL)),)
OS_TYPE := Windows
else
OS_TYPE := Cygwin
endif
else
OS_TYPE := $(shell uname -s)
endif
all:unpack example doc
example:example-zh example-en
unpack:FORCE
make -C ./hustthesis unpack
example-zh ./hustthesis/hustthesis-zh-example.pdf:
make -C ./hustthesis example-zh
example-en ./hustthesis/hustthesis-en-example.pdf:
make -C ./hustthesis example-en
doc ./hustthesis/hustthesis.pdf:
make -C ./hustthesis doc
clean:
make -C ./hustthesis clean
reallyclean:
make -C ./hustthesis reallyclean
install:unpack ./hustthesis/hustthesis-zh-example.pdf ./hustthesis/hustthesis-en-example.pdf ./hustthesis/hustthesis.pdf
ifeq ($(OS_TYPE),Windows)
./install/win32.bat install
else
./install/unix.sh install
endif
uninstall:
ifeq ($(OS_TYPE),Windows)
./install/win32.bat uninstall
else
./install/unix.sh uninstall
endif
checksum:FORCE
make -C ./hustthesis checksum
ctan:
make -C ./hustthesis ctan
ctan-upload:
make -C ./hustthesis ctan-upload
FORCE:
.PHONY:all unpack example example-zh example-en doc install uninstall clean reallyclean checksum ctan ctan-upload FORCE