dh_auto_configure --sourcedirectory=doc -- $(CONF_FLAGS)
override_dh_auto_install:
- dh_auto_install --sourcedirectory=src -- debian-clean
- dh_auto_install --sourcedirectory=doc \
- -- install-html install-pdf debian-clean
+ dh_auto_install --sourcedirectory=src -- SCM_DEBIAN_CLEAN=yes
+ dh_auto_install --sourcedirectory=doc -- SCM_DEBIAN_CLEAN=yes \
+ install-html install-pdf
debian/%: debian/%.in
sed -e 's|@SCMDOCDIR@|/usr/share/doc/mit-scheme-pucked|g' \
echo " \"$(DESTDIR)$(libdir)/$(PROJECT)\""; \
echo " \"$(DESTDIR)$(docdir)\")" \
) | mit-scheme-pucked --batch-mode
+ if test "${SCM_DEBIAN_CLEAN}" = "yes"; then \
+ rm -f $(DESTDIR)$(infodir)/dir*; \
+ rm -f $(DESTDIR)$(docdir)/plugins.scm; fi
install-info-gz install-info: $(PROJECT).info
$(mkinstalldirs) $(DESTDIR)$(infodir)
( cd $${D} && $(MAKE) $@ ) || exit 1;\
done
-debian-clean:
- rm -f $(DESTDIR)$(infodir)/dir*
- rm -f $(DESTDIR)$(docdir)/plugins.scm
-
$(PROJECT).info: $(PROJECT).info.in
sed -e 's|@SCMDOCDIR@|$(docdir)|g' < $< > $@
rm -rf boot-root
rm -f stamp_*
-.PHONY: debian-clean
-debian-clean:
- rm -f $(DESTDIR)$(AUXDIR)/plugins.scm
-
.PHONY: tags TAGS
tags TAGS:
$(top_srcdir)/Tags.sh $(SUBDIRS)
.PHONY: install
install: install-standard @INSTALL_LIARC_BUNDLES@
+ if test "${SCM_DEBIAN_CLEAN}" = "yes"; then \
+ rm -f $(DESTDIR)$(AUXDIR)/plugins.scm; fi
.PHONY: install-standard
install-standard: install-auxdir-top