diff --git a/debian/rules b/debian/rules index b4ecae4..3e7394e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,12 +1,18 @@ #!/usr/bin/make -f + +DESTDIR=$$(pwd)/debian/proxmox-routing + %: dh $@ override_dh_auto_install: - $(MAKE) DESTDIR=$$(pwd)/debian/proxmox-routing install + $(MAKE) DESTDIR=$(DESTDIR) install override_dh_auto_build: @ override_dh_usrlocal: @ + +override_dh_auto_clean: + if [ -d "$(DESTDIR)" ]; then rm -r $(DESTDIR); fi