forked from snakevil-archive/unip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 loc) · 1.46 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
# GNU Makefile.
#
# This file is part of UniP.
#
# UniP is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# UniP is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with UniP. If not, see <http://www.gnu.org/licenses/>.
#
# AUTHOR Snakevil Zen <[email protected]>
# COPYRIGHT © 2012 snakevil.in
# LICENSE http://www.gnu.org/licenses/gpl-3.0.html
all: contrib/index.html
clean:
$(RM) -R build contrib
contrib/index.html: src/index.html $(subst ./static,build/static,$(shell deploy/scan src/index.html))
[ -d '$(@D)' ] || 'mkdir' '$(@D)'
cd build && ../deploy/pack '../$<' > '../$@'
build/static/css/%.css: src/static/css/%.css
[ -d '$(@D)' ] || 'mkdir' -p '$(@D)'
'cp' -a '$(lastword $^)' '$@'
build/static/js/rules.js: build/static/js/rot.js src/static/js/rules.js
'cp' -a '$<' '$@' && deploy/uglifyjs '$(lastword $^)' | deploy/rot - >> '$@'
build/static/js/%.js: src/static/js/%.js
[ -d '$(@D)' ] || 'mkdir' -p '$(@D)'
deploy/uglifyjs '$(lastword $^)' > '$@'
.PHONY: all clean
# vim: se ft=make fenc=utf-8 ff=unix tw=198486 noet nosta: