-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
201 lines (166 loc) · 5.48 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
SHELL := /bin/bash
test_all: test_abschlussarbeit test_abstract test_article test_beamer test_book test_hausarbeit test_standalone
release_all: release_abschlussarbeit release_abstract release_article release_beamer release_book release_hausarbeit release_standalone
#-------------------------------------------------------------------------------
ABSCHLUSSARBEIT_TEST_DIR = test_abschlussarbeit
ABSCHLUSSARBEIT_FILES = $(shell ./extract_input_files.sh "abschlussarbeit-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
abschlussarbeit-main.tex \
references.bib
test_abschlussarbeit:
rm -fr $(ABSCHLUSSARBEIT_TEST_DIR)
mkdir $(ABSCHLUSSARBEIT_TEST_DIR)
cp -r --parents $(ABSCHLUSSARBEIT_FILES) $(ABSCHLUSSARBEIT_TEST_DIR)
cd $(ABSCHLUSSARBEIT_TEST_DIR); \
latexmk -pdf abschlussarbeit-main.tex
release_abschlussarbeit:
rm -fr temp
mkdir temp
cp -r --parents $(ABSCHLUSSARBEIT_FILES) temp
cd temp; zip -r abschlussarbeit-template.zip *; mv abschlussarbeit-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
ABSTRACT_TEST_DIR = test_abstract
ABSTRACT_FILES = $(shell ./extract_input_files.sh "abstract-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
abstract-main.tex \
abstract-main.org \
references.bib
test_abstract:
rm -fr $(ABSTRACT_TEST_DIR)
mkdir $(ABSTRACT_TEST_DIR)
cp -r --parents $(ABSTRACT_FILES) $(ABSTRACT_TEST_DIR)
cd $(ABSTRACT_TEST_DIR); \
latexmk -pdf abstract-main.tex
release_abstract:
rm -fr temp
mkdir temp
cp -r --parents $(ABSTRACT_FILES) temp
cd temp; zip -r abstract-template.zip *; mv abstract-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
ARTICLE_TEST_DIR = test_article
ARTICLE_FILES = $(shell ./extract_input_files.sh "article-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
article-main.tex \
article-main.org \
references.bib
test_article:
rm -fr $(ARTICLE_TEST_DIR)
mkdir $(ARTICLE_TEST_DIR)
cp -r --parents $(ARTICLE_FILES) $(ARTICLE_TEST_DIR)
cd $(ARTICLE_TEST_DIR); \
latexmk -pdf article-main.tex
release_article:
rm -fr temp
mkdir temp
cp -r --parents $(ARTICLE_FILES) temp
cd temp; zip -r article-template.zip *; mv article-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
BEAMER_TEST_DIR = test_beamer
BEAMER_FILES = $(shell ./extract_input_files.sh "beamer-main.tex") \
$(wildcard beamer*) \
$(wildcard packages/*.sty) \
$(wildcard graphics/*.pdf) \
references.bib \
latexmkrc \
muss.bbx \
muss.cbx
test_beamer:
rm -fr $(BEAMER_TEST_DIR)
mkdir $(BEAMER_TEST_DIR)
cp -r --parents $(BEAMER_FILES) $(BEAMER_TEST_DIR)
cd $(BEAMER_TEST_DIR); \
latexmk -pdf beamer-main.tex
release_beamer:
rm -fr temp
mkdir temp
cp -r --parents $(BEAMER_FILES) temp
cd temp; zip -r beamer-template.zip *; mv beamer-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
BOOK_TEST_DIR = test_book
BOOK_FILES = $(shell ./extract_input_files.sh "book-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
book-main.tex \
references.bib
test_book:
rm -fr $(BOOK_TEST_DIR)
mkdir $(BOOK_TEST_DIR)
cp -r --parents $(BOOK_FILES) $(BOOK_TEST_DIR)
cd $(BOOK_TEST_DIR); \
latexmk -pdf book-main.tex
release_book:
rm -fr temp
mkdir temp
cp -r --parents $(BOOK_FILES) temp
cd temp; zip -r book-template.zip *; mv book-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
HAUSARBEIT_TEST_DIR = test_hausarbeit
HAUSARBEIT_FILES = $(shell ./extract_input_files.sh "hausarbeit-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
references.bib \
hausarbeit-main.tex
test_hausarbeit:
rm -fr $(HAUSARBEIT_TEST_DIR)
mkdir $(HAUSARBEIT_TEST_DIR)
cp -r --parents $(HAUSARBEIT_FILES) $(HAUSARBEIT_TEST_DIR)
cd $(HAUSARBEIT_TEST_DIR); \
latexmk -pdf hausarbeit-main.tex
release_hausarbeit:
rm -fr temp
mkdir temp
cp -r --parents $(HAUSARBEIT_FILES) temp
cd temp; zip -r hausarbeit-template.zip *; mv hausarbeit-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
POSTER_TEST_DIR = test_poster
POSTER_FILES = $(shell ./extract_input_files.sh "poster-main.tex") \
poster-main.tex \
graphics/sfb-logo-quer.pdf \
graphics/hhu-logo-hres.pdf \
$(wildcard packages/*.sty) \
muss.bbx \
muss.cbx
test_poster:
rm -fr $(POSTER_TEST_DIR)
mkdir $(POSTER_TEST_DIR)
cp -r --parents $(POSTER_FILES) $(POSTER_TEST_DIR)
cd $(POSTER_TEST_DIR); \
latexmk -pdf poster-main.tex
release_poster:
rm -fr temp
mkdir temp
cp -r --parents $(POSTER_FILES) temp
cd temp; zip -r poster-template.zip *; mv poster-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------
STANDALONE_TEST_DIR = test_standalone
STANDALONE_FILES = $(shell ./extract_input_files.sh "standalone-main.tex") \
standalone-main.tex \
$(wildcard packages/*.sty)
test_standalone:
rm -fr $(STANDALONE_TEST_DIR)
mkdir $(STANDALONE_TEST_DIR)
cp -r --parents $(STANDALONE_FILES) $(STANDALONE_TEST_DIR)
cd $(STANDALONE_TEST_DIR); \
latexmk -pdf standalone-main.tex
release_standalone:
rm -fr temp
mkdir temp
cp -r --parents $(STANDALONE_FILES) temp
cd temp; zip -r standalone-template.zip *; mv standalone-template.zip ..
rm -fr temp
#-------------------------------------------------------------------------------