# # Makefile # # this makefile is only used to make quick and dirty debian packages # and snapshots VERSION=0.2 PACKAGE_VERSION=1 PROG=dpkg-deb SOURCE=./tmp FLAGS=--build DEBTARGET=torwatch_$(VERSION)-$(PACKAGE_VERSION)_i386.deb TARGET=torwatch-$(VERSION) default: @echo "options are 'snapshot', 'debian_package', 'clean'" snapshot: svn export ./ $(TARGET) tar cvvf $(TARGET).tar $(TARGET) gzip $(TARGET).tar rm -R $(TARGET) debian_package: mkdir -p tmp/DEBIAN mkdir -p tmp/usr/sbin mkdir -p tmp/usr/share/doc/torwatch mkdir -p tmp/usr/share/lua/5.1/ cp debian/control tmp/DEBIAN cp debian/copyright tmp/usr/share/doc/torwatch/copyright cp src/torwatch tmp/usr/sbin/torwatch cp src/torwatch.lua tmp/usr/share/lua/5.1/torwatch.lua fakeroot $(PROG) $(FLAGS) $(SOURCE) $(DEBTARGET) clean: rm -Rf tmp/*