diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 01ce32c..aaff96e 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,10 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export SUBDIR=d2x-rebirth %: - dh $@ --parallel + dh $@ --parallel --sourcedirectory="${SUBDIR}" override_dh_clean: scons --clean @@ -13,7 +14,7 @@ override_dh_clean: override_dh_auto_build: dh_auto_build ## build menu icon - convert d2x-rebirth.xpm -resize 32x32 debian/d2x-rebirth32.xpm + convert "${SUBDIR}"/d2x-rebirth.xpm -resize 32x32 debian/d2x-rebirth32.xpm CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ scons prefix=/usr verbosebuild=1 --debug=presub @@ -34,7 +35,7 @@ override_dh_auto_install: dh_auto_install --destdir=$(CURDIR)/tmp override_dh_installchangelogs: - dh_installchangelogs CHANGELOG.txt + dh_installchangelogs "${SUBDIR}"/CHANGELOG.txt ## http://wiki.debian.org/onlyjob/get-orig-source PKD = $(abspath $(dir $(MAKEFILE_LIST))) |