Commit 60578040 authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso

debian/rules: Shortcut used path names with variable substitutions

Inroduce $(PACKAGE) and $(TMP) to be used for the
$(CURDIR)/debian/$(PACKAGE) path and shorten lengths in override for
dh_auto_install.
parent 703bbc29
#!/usr/bin/make -f
# -*- makefile -*-
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
%:
dh $@
override_dh_auto_install:
dh_auto_install -- prefix=$(CURDIR)/debian/w2do/usr
sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(CURDIR)/debian/w2do/usr/bin/*
dh_auto_install -- prefix=$(TMP)/usr
sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment