diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e4062df --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk + +%: + dh $@ --with python3 + +override_dh_auto_configure: + dh_auto_configure -- --datadir=/usr/share/misc + +override_dh_auto_build: + dh_auto_build + $(CC) $(CPPFLAGS) $(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 |