diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 10 insertions, 14 deletions
| @@ -1,19 +1,15 @@ | |||
| 1 | VERSION=1.0 | 1 | .PHONY: clean deps tests |
| 2 | DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version) | ||
| 3 | 2 | ||
| 4 | tests: | 3 | all: php-malware-finder/phpmalwarefinder |
| 5 | @cd ./php-malware-finder && bash ./tests.sh | ||
| 6 | 4 | ||
| 7 | debclean: | 5 | php-malware-finder/phpmalwarefinder: |
| 8 | rm -rf php-malware-finder/debian | 6 | go build -o php-malware-finder/phpmalwarefinder php-malware-finder/phpmalwarefinder.go |
| 9 | rm -f *.build *.changes *.deb | ||
| 10 | 7 | ||
| 11 | extract: | 8 | clean: |
| 12 | cp -r debian php-malware-finder | 9 | rm -f php-malware-finder/phpmalwarefinder |
| 13 | git checkout php-malware-finder/php.yar | ||
| 14 | 10 | ||
| 15 | rpm: | 11 | deps: |
| 16 | @echo "no rpm build target for now, feel free to submit one" | 12 | go mod tidy -v |
| 17 | 13 | ||
| 18 | deb: debclean extract | 14 | tests: php-malware-finder/phpmalwarefinder |
| 19 | cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf --profile debian | 15 | @cd ./php-malware-finder && bash ./tests.sh |
