1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/usr/bin/make -f
PACKAGE = ltpanel
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
override_dh_auto_build:
# There is no other place where to inject additional flags but CC
$(MAKE) -C src CC="gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"
override_dh_auto_clean:
$(MAKE) -C src clean
override_dh_installchangelogs:
dh_installchangelogs HISTORY
override_dh_installman:
# Rename 'l'panel to 'lt'panel
install -m 755 -d $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1
sed "s/lpanel/$(PACKAGE)/" doc/*.1 \
> $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/$(PACKAGE).1
override_dh_install:
dh_install
# Rename 'l'panel to 'lt'panel
mv --verbose $(CURDIR)/debian/$(PACKAGE)/usr/bin/lpanel \
$(CURDIR)/debian/$(PACKAGE)/usr/bin/$(PACKAGE)
%:
dh $@
# End of file
|