| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/buildflags.mk |
| 4 |
|
| 5 |
# From dpkg-dev |
| 6 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 7 |
|
| 8 |
PACKAGE = dos2unix |
| 9 |
PKGDIR = $(CURDIR)/debian/$(PACKAGE) |
| 10 |
DOCROOTDIR = $(PKGDIR)/usr/share/doc |
| 11 |
PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE) |
| 12 |
|
| 13 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 14 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 15 |
|
| 16 |
PODCENTER = $(shell date -u +"%Y-%m-%d" --date="$(SOURCE_DATE_EPOCH)") |
| 17 |
export PODCENTER |
| 18 |
|
| 19 |
override_dh_auto_build: |
| 20 |
env LANG=en_US.UTF-8 \ |
| 21 |
dh_auto_build -- LDFLAGS_USER="$(LDFLAGS)" CFLAGS_USER="$(CPPFLAGS) $(CFLAGS)" |
| 22 |
|
| 23 |
override_dh_clean: |
| 24 |
dh_clean |
| 25 |
rm -f man/es/man1/dos2unix.1 |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
dh_auto_install |
| 29 |
|
| 30 |
# dos2unix-N.N/ => dos2unix/ |
| 31 |
mv -v $(DOCROOTDIR)/$$( cd $(DOCROOTDIR) && ls ) $(PKGDOCDIR) |
| 32 |
|
| 33 |
# Remove files that are not needed. The PS and PDF are |
| 34 |
# copies of manual pages. |
| 35 |
|
| 36 |
rm -vf $(PKGDOCDIR)/COPYING.txt \ |
| 37 |
$(PKGDOCDIR)/INSTALL.txt \ |
| 38 |
$(PKGDOCDIR)/ChangeLog.txt \ |
| 39 |
|
| 40 |
%: |
| 41 |
dh $@ |
| 42 |
|
| 43 |
# End of file |