Get DESTDIR from the environment and add distclean target. (#378)

autoconf-based packages conventionally respect the DESTDIR environment
variable rather needing to explicitly override it.

Likewise the distclean target is conventionally named distclean rather
than dist-clean. This change adds a top-level alias to be compatible.

These changes are needed to build bochs on my infrastructure without
having to special case bochs or locally patch it.
This commit is contained in:
Jonas Termansen 2024-11-04 21:35:07 +01:00 committed by GitHub
parent 5767dd64ab
commit 3932aeac12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -35,8 +35,6 @@ sharedir = $(datarootdir)/bochs
top_builddir = .
top_srcdir = $(srcdir)
DESTDIR =
VERSION=@VERSION@
REL_STRING=@REL_STRING@
MAN_PAGE_1_LIST=bochs bximage bochs-dlx
@ -606,6 +604,8 @@ all-clean: clean @CLEAN_DOCBOOK_VAR@ @CLEAN_PCIDEV_VAR@
$(MAKE) clean
@CD_UP_ONE@
distclean: dist-clean
dist-clean: local-dist-clean
cd iodev @COMMAND_SEPARATOR@
$(MAKE) dist-clean

View File

@ -26,8 +26,6 @@ SGML_VALIDATE = nsgmls -s
DOCBOOK2HTML = $(JADE) $(JADE_ARGS)
endif
DESTDIR=
# name of the major documentation sections
SECTIONS=user documentation development
SECTION_HTML=$(SECTIONS:%=%/index.html)