From 32644dd1e7eff1236bb1e1c149cee9bf8ee4342c Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 9 Jan 2012 23:18:26 +0000 Subject: Add very quick&dirty .deb rule --- Makefile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0e4580a..68a300c 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,25 @@ dist: rm -rf $(NAME)-$(VERSION) echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig +# quick and dirty; a real debian dev should create a real .deb +dist-deb: + mkdir -p deb + cp config.mk config.mk.orig + sed 's/^PREFIX =.*/PREFIX = deb\/usr/g' < config.mk.orig > config.mk + make install + mv config.mk.orig config.mk + cp $(EXTRAS) deb/usr/bin/ + chmod +x deb/usr/bin/* + mkdir -p deb/usr/share/doc/$(NAME) + cp $(DOC) deb/usr/share/doc/$(NAME) + mv deb/usr/share/doc/$(NAME)/COPYING deb/usr/share/doc/$(NAME)/copyright + mkdir -p deb/DEBIAN + printf "Package: %s\nVersion: %s-1\nArchitecture: i386\nDepends: libc6, tcl, tk\n" "$(NAME)" "$(VERSION)" > deb/DEBIAN/control + fakeroot dpkg-deb --build deb + mv deb.deb $(NAME)_$(VERSION)-1_i386.deb + rm -rf deb + echo $(NAME)_$(VERSION)-1_i386.deb + getxbookgui.exe: getxbookgui.tcl @echo STARPACK $@ @sdx qwrap getxbookgui.tcl @@ -110,5 +129,5 @@ index.html: doap.ttl README sh websummary.sh doap.ttl | smu >> $@ echo '' >> $@ -.PHONY: all clean install uninstall dist dist-win dist-mac -.SILENT: index.html dist +.PHONY: all clean install uninstall dist dist-deb dist-win dist-mac +.SILENT: index.html dist dist-deb -- cgit v1.2.3