-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
42 lines (30 loc) · 809 Bytes
/
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
# Set the source directory
srcdir = src/
builddir = build/
buildname = terminus
lessfiles = $(wildcard src/ui/css/*.less)
cssfile = ${builddir}/${buildname}.css
# Dependencies
targets = config.js
all: debug release
jshint:
@echo Executing jshint...
@echo ---------------------------------------
@jshint $(srcdir)
@echo done.
debug: jshint ${targets} less
r.js -o config.js optimize=none out=${builddir}/${buildname}.js
release: jshint ${targets} less
r.js -o config.js out=${builddir}/${buildname}.min.js
less: $(lessfiles:.less=.css)
@echo "LESS compiler finished."
%.css: %.less
@echo Compiling $<
@lessc --yui-compress $< >> ${cssfile}
clean:
rm -f ${builddir}/${buildname}.js
rm -f ${builddir}/${buildname}.min.js
rm -f ${cssfile}
install:
npm install requirejs
npm install less