-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 824 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
RM = rm
CAT = cat
TARGET = build
CSSLINTFLAGS = --quiet --errors=empty-rules,import,errors --warnings=duplicate-background-images,compatible-vendor-prefixes,display-property-grouping,fallback-colors,duplicate-properties,shorthand,gradients,font-sizes,floats,overqualified-elements,import,regex-selectors,rules-count,unqualified-attributes,vendor-prefix,zero-units
FETCH = .git/FETCH_HEAD
all: build
build: version.js
$(FETCH):
version.txt: $(FETCH)
git describe --tags --long | awk '{ printf "%s", $$0 }' - > version.txt
version.js :version1.txt version.txt version2.txt
$(CAT) version1.txt version.txt version2.txt > version.js
clean:
- $(RM) *~
- $(RM) version.txt version.js
lint: csslint jshint
csslint:
@echo 'running csslint'
@csslint $(CSSLINTFLAGS) *.css
jshint:
@echo 'running jshint'
@jshint *.js