summaryrefslogtreecommitdiffstats
path: root/generic-rules
diff options
context:
space:
mode:
Diffstat (limited to 'generic-rules')
-rwxr-xr-xgeneric-rules31
1 files changed, 31 insertions, 0 deletions
diff --git a/generic-rules b/generic-rules
new file mode 100755
index 0000000..6ef8263
--- /dev/null
+++ b/generic-rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+# Generic rules file for kernel-wedge using packages.
+# Just include it into your own rules file.
+
+export DH_COMPAT=7
+
+debian/control:
+ kernel-wedge gen-control > debian/control
+
+build: debian/control
+ dh_testdir
+
+clean: debian/control
+ dh_testdir
+ dh_clean `find modules -type l`
+
+binary-indep:
+
+binary-arch: debian/control
+ dh_testdir
+ dh_prep
+
+ kernel-wedge install-files
+ kernel-wedge check
+
+ dh_fixperms -s
+ dh_gencontrol -s
+ dh_builddeb -s
+
+binary: build binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary debian/control