| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
package=fweb |
| 5 |
|
| 6 |
# be paranoid... |
| 7 |
export LC_ALL=C |
| 8 |
|
| 9 |
# This has to be exported to make some magic below work. |
| 10 |
export DH_OPTIONS |
| 11 |
|
| 12 |
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
INSTALLFLAGS = |
| 18 |
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
| 19 |
INSTALLFLAGS += -s |
| 20 |
endif |
| 21 |
|
| 22 |
override_dh_auto_build-arch: |
| 23 |
${MAKE} -C Web tch_src both idxmerge |
| 24 |
|
| 25 |
override_dh_auto_build-indep: |
| 26 |
${MAKE} -C Web ../Manual/fweb.info |
| 27 |
cd Manual && makeinfo --output=fweb --html fweb.texi |
| 28 |
|
| 29 |
override_dh_auto_configure: |
| 30 |
cd Web; ./configure --prefix=/usr |
| 31 |
|
| 32 |
override_dh_auto_clean: |
| 33 |
# The problem is that Makefile includes defaults.mk which is a |
| 34 |
# ./configure generated file, but it does not exist when clean |
| 35 |
# is being run. |
| 36 |
touch Web/defaults.mk |
| 37 |
dh_auto_clean --sourcedir=Web |
| 38 |
# $(MAKE) -C Web distclean |
| 39 |
|
| 40 |
-rm -f Web/idxmerge Web/idxmerge.c Web/custom.h Web/config.h \ |
| 41 |
Manual/fweb.info* Manual/fweb*.html |
| 42 |
rm -rf Manual/fweb/ |
| 43 |
rm -f Web/fweave.mds Web/fweave.ndx |
| 44 |
|
| 45 |
override_dh_auto_install-arch: |
| 46 |
mkdir -p $(CURDIR)/debian/$(package)-doc/usr/share/info |
| 47 |
dh_auto_install --sourcedir=Web -- \ |
| 48 |
bindir=$(CURDIR)/debian/$(package)/usr/bin \ |
| 49 |
infodir=$(CURDIR)/debian/$(package)-doc/usr/share/info \ |
| 50 |
mandir=$(CURDIR)/debian/$(package)/usr/share/man/man1 \ |
| 51 |
texdir=$(CURDIR)/debian/$(package)/usr/share/texmf/tex/latex/litprog |