summaryrefslogtreecommitdiff
path: root/package/Makefile
blob: 74a305b59bfb83ac2de45d8f94700407822929d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BUILDDIR=debian/build
VERSION=1.0

clean:
	rm -Rf ${BUILDDIR}
	rm -f debian/*.log

fetch:
	git clone git@gitlab.nbs-system.com:packages/php-malware-finder.git

extract: fetch
	mv php-malware-finder ${BUILDDIR}

set_distribution:
		sed -e "s/##version/`cut -d'.' -f1 < /etc/debian_version`/" -i debian/control debian/changelog

package: clean extract set_distribution
	debuild -b -us -uc --lintian-opts -X po-debconf