diff options
| -rw-r--r-- | Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
| @@ -1,18 +1,13 @@ | |||
| 1 | BUILDDIR=debian/build | ||
| 2 | VERSION=1.0 | 1 | VERSION=1.0 |
| 3 | 2 | ||
| 4 | clean: | 3 | clean: |
| 5 | rm -Rf ${BUILDDIR} | 4 | rm -rf php-malware-finder/debian |
| 6 | rm -f debian/*.log | ||
| 7 | 5 | ||
| 8 | fetch: | 6 | extract: |
| 9 | git clone git@gitlab.nbs-system.com:packages/php-malware-finder.git | 7 | cp -r debian php-malware-finder |
| 10 | |||
| 11 | extract: fetch | ||
| 12 | mv php-malware-finder ${BUILDDIR} | ||
| 13 | 8 | ||
| 14 | set_distribution: | 9 | set_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 | ||
| 17 | package: clean extract set_distribution | 12 | package: 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 |
