-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
37 lines (27 loc) · 993 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
RM = rm -rf
all: test doc
doc:
cd Docs ; git clone https://github.com/depage/depage-docu.git depage-docu || true
doxygen Docs/Doxyfile
cp -r Docs/depage-docu/www/lib Docs/html/
test:
cd Tests; $(MAKE) $(MFLAGS)
release: clean jshint min jsmin
mkdir Release
tar cfz Release/depage-forms.tar.gz README.md Abstracts Docs/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 Docs/examples Elements Exceptions Validators lib/js/*.min.js lib/css lib/*.png HtmlForm.php composer.json
shasum -a 512 Release/depage-forms.zip > Release/depage-forms.zip.sha2
shasum -a 512 Release/depage-forms.tar.gz > Release/depage-forms.tar.gz.sha2
min: clean jsmin
jsmin:
cd lib/js; $(MAKE) $(MFLAGS) jsmin
jshint:
cd lib/js; $(MAKE) $(MFLAGS) jshint
clean:
$(RM) Docs/depage-docu/ Docs/html/
cd Tests; $(MAKE) $(MFLAGS) clean
${RM} Release
.PHONY: all
.PHONY: clean
.PHONY: test
.PHONY: doc