forked from Spoje-NET/FlexiPeeHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (35 loc) · 1.2 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
45
46
47
48
49
all: fresh build install
fresh:
git pull
install: build
# cp -rvf src/FlexiPeeHP /usr/share/php/FlexiPeeHP
static:
rm -rf static/*
echo "STATIC #######################
cd tools/ ; ./update_all.sh ; cd ..
build: static doc
cd tools/ ; ./update_all.sh ; cd ..
clean:
rm -rf debian/flexipeehp
rm -rf debian/flexipeehp-doc
rm -rf debian/*.log
rm -rf debian/*.substvars
rm -rf docs/*
rm -f debianTest/composer.lock
doc:
VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
apigen generate --source src --destination docs --title "FlexiPeeHP ${VERSION}" --charset UTF-8 --access-levels public --access-levels protected --php --tree
test:
composer update
phpunit --bootstrap testing/bootstrap.php
changelog:
CHANGES=`git log -n 1 | tail -n+5` ; dch -b -v `cat debian/version`-`cat debian/revision` --package flexipeehp "$(CHANGES)"
deb: changelog
debuild -i -us -uc -b
rpm:
rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák <[email protected]>" flexipeehp.spec
rpmbuild -ba flexipeehp.spec
verup:
git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`"
git push origin master
.PHONY : install