summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-09-12 00:44:48 +0100
committerNick White <git@njw.me.uk>2012-09-12 00:44:48 +0100
commit07c5ae6df24448559259de81eb8d0367553041a7 (patch)
treedfbbdc268b16647bb672c3c3d20484665266f9d1 /debian/rules
parent154fe9fbdb388e618a9b62cc61e8a3bbc3a4b82c (diff)
First attempt to get debhelper-less thing working
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index c30cbf5..18a0c50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,31 @@
#!/usr/bin/make -f
+
+package = getxbook
+DESTDIR = debian/$(package)
+
+build:
+ $(MAKE)
+
+binary: binary-arch binary-indep
+
+binary-arch: build
+
+binary-indep: build
+ $(MAKE) DESTDIR=$(DESTDIR) PREFIX=/usr
+ mkdir -p $(DESTDIR)/share/applications
+ cp -f $(package).desktop $(DESTDIR)/usr/share/applications/
+ mkdir -p $(DESTDIR)/usr/lib/menu
+ cp -f menu $(DESTDIR)/usr/lib/menu/$(package).menu
+ # TODO: gzip docs
+ # TODO: strip binaries
+ dpkg-deb -b $(DESTDIR) ../
+
+clean:
+ make clean
+ rm -r debian/$(package)
+
+.PHONY: build binary binary-arch binary-indep clean
+
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.