summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 1fa1a91..931f4e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,15 @@
1VERSION=1.0 1.PHONY: clean deps tests
2DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version)
3 2
4tests: 3all: php-malware-finder/phpmalwarefinder
5 @cd ./php-malware-finder && bash ./tests.sh
6 4
7debclean: 5php-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
11extract: 8clean:
12 cp -r debian php-malware-finder 9 rm -f php-malware-finder/phpmalwarefinder
13 git checkout php-malware-finder/php.yar
14 10
15rpm: 11deps:
16 @echo "no rpm build target for now, feel free to submit one" 12 go mod tidy -v
17 13
18deb: debclean extract 14tests: 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