diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -4,7 +4,7 @@ DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version) | |||
| 4 | tests: | 4 | tests: |
| 5 | @cd ./php-malware-finder && bash ./tests.sh | 5 | @cd ./php-malware-finder && bash ./tests.sh |
| 6 | 6 | ||
| 7 | clean: | 7 | debclean: |
| 8 | rm -rf php-malware-finder/debian | 8 | rm -rf php-malware-finder/debian |
| 9 | rm -f *.build *.changes *.deb | 9 | rm -f *.build *.changes *.deb |
| 10 | 10 | ||
| @@ -17,10 +17,8 @@ extract: | |||
| 17 | set_distribution: | 17 | set_distribution: |
| 18 | sed -e "s/##version/${DEBVER}/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog | 18 | sed -e "s/##version/${DEBVER}/" -i php-malware-finder/debian/control php-malware-finder/debian/changelog |
| 19 | 19 | ||
| 20 | check_distribution: | 20 | rpm: |
| 21 | ifeq ($(DEBVER),6) | 21 | @echo "no rpm build target for now, feel free to submit one" |
| 22 | sed -e '/too_many_chr/d' -e '/b64_concat/d' -e 's/^import.*//g' -e 's/^include.*//g' -e 's/and\ not\ IsWhitelisted//g' -i php-malware-finder/common.yar | ||
| 23 | endif | ||
| 24 | 22 | ||
| 25 | package: clean extract set_distribution check_distribution | 23 | deb: debclean extract set_distribution |
| 26 | cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf | 24 | cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf |
