summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 74a305b..c34bcee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,13 @@
1BUILDDIR=debian/build
2VERSION=1.0 1VERSION=1.0
3 2
4clean: 3clean:
5 rm -Rf ${BUILDDIR} 4 rm -rf php-malware-finder/debian
6 rm -f debian/*.log
7 5
8fetch: 6extract:
9 git clone git@gitlab.nbs-system.com:packages/php-malware-finder.git 7 cp -r debian php-malware-finder
10
11extract: fetch
12 mv php-malware-finder ${BUILDDIR}
13 8
14set_distribution: 9set_distribution:
15 sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i debian/control debian/changelog 10 sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog
16 11
17package: clean extract set_distribution 12package: clean extract set_distribution
18 debuild -b -us -uc --lintian-opts -X po-debconf 13 cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf