| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
ifeq (sh4,$(shell dpkg-architecture -qDEB_HOST_ARCH)) |
| 4 |
# Renesas SH(sh4) need -mieee option. |
| 5 |
# Without this option the fmtspcl test fails. |
| 6 |
export DEB_CFLAGS_MAINT_APPEND = -mieee |
| 7 |
endif |
| 8 |
|
| 9 |
LOCPATH=$(CURDIR)/debian/build/locales |
| 10 |
LOCALIAS=/usr/share/locale/locale.alias |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
dh_auto_configure -- --disable-rpath |
| 17 |
touch --date="Jan 01 2000" \ |
| 18 |
doc/gawktexi.in doc/sidebar.awk \ |
| 19 |
doc/gawk.texi doc/gawk.info \ |
| 20 |
doc/gawkinet.texi doc/gawkinet.info \ |
| 21 |
doc/gawkworkflow.texi doc/gawkworkflow.info \ |
| 22 |
doc/pm-gawk.texi doc/pm-gawk.info |
| 23 |
|
| 24 |
override_dh_auto_test: |
| 25 |
# Only run the testsuite if it's wanted. |
| 26 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 27 |
make check |
| 28 |
endif |
| 29 |
|
| 30 |
override_dh_auto_install: |
| 31 |
dh_auto_install |
| 32 |
# Remove unwanted files. |
| 33 |
rm -f debian/gawk/usr/bin/*awk-* |
| 34 |
rm -f debian/gawk/usr/bin/awk |
| 35 |
# Remove fake info files (see README.source). |
| 36 |
rm -rf debian/gawk/usr/share/info |
| 37 |
|
| 38 |
override_dh_auto_clean: |
| 39 |
dh_auto_clean |
| 40 |
rm -rf debian/build |
| 41 |
|
| 42 |
override_dh_compress: |
| 43 |
# Don't compress awk examples. |
| 44 |
dh_compress --exclude=.awk |