diff options
author | Nick White <git@njw.me.uk> | 2012-01-09 23:18:26 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2012-01-09 23:18:26 +0000 |
commit | 32644dd1e7eff1236bb1e1c149cee9bf8ee4342c (patch) | |
tree | a6212ab12c891efcc4b122b5f71f082382a0f460 | |
parent | f8bfddf45f4ead5e1d823400ce3d05bd25a322fe (diff) |
Add very quick&dirty .deb rule
-rw-r--r-- | Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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 '</body></html>' >> $@ -.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 |