Always run tests before assembling a Debian package.
.PHONY: deb
-deb ${DEB}:
+deb ${DEB}: check
rm -rf build
rsync -a src/ build
rsync -a debian/ build/debian
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
lintian ${DEB}
+.PHONY: check
+check:
+ make -C test check
+
.PHONY: clean
clean:
make -C src clean
+ make -C test clean
rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
.PHONY: distclean
--- /dev/null
+
+all:
+
+.PHONY: check
+check:
+ ./fwtester.pl
+
+.PHONY: install
+install: check
+
+.PHONY: clean
+clean:
+ rm -f *~ test-*/*~
+
+.PHONY: distclean
+distclean: clean
+