0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

Even more path hacks for the rpm build

- append /html if htmldir = docdir

- Run autogen.sh with --cleanenv

- Actually use PDFZ and not just Z in doc/Makefile.in.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin
2025-10-02 17:29:35 -07:00
parent b0b56c836f
commit 467828c431
2 changed files with 9 additions and 5 deletions

View File

@@ -147,12 +147,16 @@ spotless: clean
-$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.pdf.xz *.dvi
install_html: html
$(MKDIR_P) $(DESTDIR)$(htmldir)
$(INSTALL_DATA) html/* $(DESTDIR)$(htmldir)
html='$(htmldir)' ; \
if [ x"$$html" = x'$(docdir)' ]; then \
html="$$html/html" ; \
fi ; \
$(MKDIR_P) $(DESTDIR)"$$html" ; \
$(INSTALL_DATA) html/* $(DESTDIR)"$$html"
install_pdf: nasmdoc.pdf$(Z)
install_pdf: nasmdoc.pdf$(PDFZ)
$(MKDIR_P) $(DESTDIR)$(pdfdir)
$(INSTALL_DATA) nasmdoc.pdf$(Z) $(DESTDIR)$(pdfdir)
$(INSTALL_DATA) nasmdoc.pdf$(PDFZ) $(DESTDIR)$(pdfdir)
install: install_html install_pdf