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 35 36 37 38 39 40 41 42 43 44
|
PACKAGE = dos2unix
PKGDIR = $(CURDIR)/debian/$(PACKAGE)
DOCROOTDIR = $(PKGDIR)/usr/share/doc
PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE)
BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
PODCENTER = $(shell date -u +"%Y-%m-%d" --date="$(BUILD_DATE)")
export PODCENTER
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
override_dh_auto_build:
env LANG=en_US.UTF-8 \
dh_auto_build -- LDFLAGS_USER="$(LDFLAGS)" CFLAGS_USER="$(CPPFLAGS) $(CFLAGS)"
override_dh_clean:
dh_clean
rm -f man/es/man1/dos2unix.1
override_dh_auto_install:
dh_auto_install
mv -v $(DOCROOTDIR)/$$( cd $(DOCROOTDIR) && ls ) $(PKGDOCDIR)
rm -vf $(PKGDOCDIR)/COPYING.txt \
$(PKGDOCDIR)/INSTALL.txt \
$(PKGDOCDIR)/ChangeLog.txt \
%:
dh $@
|