From 61126b35771eaa7537757362f264dbc8b6a32ed7 Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Fri, 15 Apr 2022 22:02:16 +0200 Subject: Rewrite shell script in Go --- Makefile | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1fa1a91..931f4e7 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,15 @@ -VERSION=1.0 -DEBVER := $(shell sed 's,[/\.].*,,' < /etc/debian_version) +.PHONY: clean deps tests -tests: - @cd ./php-malware-finder && bash ./tests.sh +all: php-malware-finder/phpmalwarefinder -debclean: - rm -rf php-malware-finder/debian - rm -f *.build *.changes *.deb +php-malware-finder/phpmalwarefinder: + go build -o php-malware-finder/phpmalwarefinder php-malware-finder/phpmalwarefinder.go -extract: - cp -r debian php-malware-finder - git checkout php-malware-finder/php.yar +clean: + rm -f php-malware-finder/phpmalwarefinder -rpm: - @echo "no rpm build target for now, feel free to submit one" +deps: + go mod tidy -v -deb: debclean extract - cd php-malware-finder && debuild -b -us -uc --lintian-opts -X po-debconf --profile debian +tests: php-malware-finder/phpmalwarefinder + @cd ./php-malware-finder && bash ./tests.sh -- cgit v1.3