Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -7,11 +7,11 @@ VERSION := $(shell version get:plugin st2.py || echo 2.1dev) DEST := /usr/share/streamtuner2 INST := install -m 644 PACK := xpm --verbose DEPS := -n $(NAME) -d python -d python-pyquery -d python-gtk2 -d python-requests -d python-keybinder -OPTS := -s src -u man,packfile,fixperms,preprocess=py -f --prefix=$(DEST) --deb-compression xz --rpm-compression xz --exe-autoextract +OPTS := -s src -u packfile,man,fixperms -f --prefix=$(DEST) --deb-compression xz --rpm-compression xz --exe-autoextract # targets .PHONY: bin all: gtk3 #(most used) pack: all ver docs xpm src Index: Packfile ================================================================== --- Packfile +++ Packfile @@ -1,8 +1,14 @@ # The "Packfile" is just a make script, which is used as mid-packing # helper. It's run within fpm/xmp execution context in /tmp/staging123/, # where final distribution file arrangements are made. # Keeps the Makefile more „build“-related. +all: preprocess $(PACK_TYPE) + +# More selective file rewriting +preprocess: usr/share/streamtuner2/channels/search.pym +%.pym: %.py + preprocess -D $(PKG_FLAG) -o $< $< -all: # complainy lintian needs a custom changelog.gz +deb: # complainy lintian needs a custom changelog.gz gzip -9c usr/share/doc/streamtuner2/NEWS > usr/share/doc/streamtuner2/changelog.gz