summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4798a33
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+-include /usr/share/dpkg/buildtools.mk
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ dh_auto_build
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(CURDIR)/usbreset $(CURDIR)/usbreset.c
+
+override_dh_auto_install:
+ dh_auto_install --destdir=$(CURDIR)/debian/tmp
+ install -m 755 $(CURDIR)/usbreset $(CURDIR)/debian/tmp/usr/bin
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f $(CURDIR)/usbreset