forked from depage/depage-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.21 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
RM = rm -rf
all: test doc
doc:
cd documentation; $(MAKE) $(MFLAGS)
test:
cd tests; $(MAKE) $(MFLAGS)
release: clean jsmin
mkdir release
tar cfz release/depage-forms.tar.gz README.md abstracts documentation/examples elements exceptions validators lib/js/*.min.js lib/css lib/*.png htmlform.php composer.json
zip -r release/depage-forms.zip README.md abstracts documentation/examples elements exceptions validators lib/js/*.min.js lib/css lib/*.png htmlform.php composer.json
md5sum release/depage-forms.zip > release/depage-forms.zip.md5
shasum -a 512 release/depage-forms.zip > release/depage-forms.zip.sha2
md5sum release/depage-forms.tar.gz > release/depage-forms.tar.gz.md5
shasum -a 512 release/depage-forms.tar.gz > release/depage-forms.tar.gz.sha2
min: clean jsmin
tar cfz depage-forms.tar.gz abstracts elements exceptions validators lib/js/*.min.js htmlform.php
md5sum depage-forms.tar.gz > depage-forms.tar.gz.md5
sha512sum depage-forms.tar.gz > depage-forms.tar.gz.sha2
jsmin:
cd lib/js; $(MAKE) $(MFLAGS) jsmin
jslint:
cd lib/js; $(MAKE) $(MFLAGS) jslint
clean:
cd documentation; $(MAKE) $(MFLAGS) clean
cd tests; $(MAKE) $(MFLAGS) clean
${RM} release
.PHONY: all
.PHONY: clean
.PHONY: test
.PHONY: doc