$NetBSD: patch-doc_Makefile.in,v 1.5 2025/11/07 22:10:31 ryoon Exp $ Use correct paths and tools. Do not build nasmdoc.pdf. Avoid cp -u, it is not portable. --- doc/Makefile.in.orig 2025-10-11 06:44:05.000000000 +0000 +++ doc/Makefile.in @@ -33,7 +33,7 @@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ -PERL = perl +PERL = ${PERL5} RUNPERL = $(PERL) -I$(top_srcdir)/perllib -I$(srcdir) PDFOPT = @PDFOPT@ @@ -62,8 +62,8 @@ SRCS = nasmdoc.src # All input files (except auto-dependencies) ALLSRCS = $(SRCS) $(GENSRC) -OUT = html nasmdoc.txt nasmdoc.pdf $(XZFILES) -XZOUT = nasmdoc.pdf.xz +OUT = html nasmdoc.txt $(XZFILES) +XZOUT = # Use "make install PDFZ=.xz" to install pdf.xz PDF = @@ -91,7 +91,7 @@ htmltarget=html/nasm00.html html: $(HTMLAUX) $(MKDIR_P) html - for f in $(HTMLAUX); do $(CP_UF) "$(srcdir)/$$f" html/; done + for f in $(HTMLAUX); do $(CP_F) "$(srcdir)/$$f" html/; done $(MAKE) $(htmltarget) RDSRC = $(RUNPERL) $(srcdir)/rdsrc.pl -I$(srcdir) -M$(@F).dep @@ -158,7 +158,7 @@ install_pdf: nasmdoc.pdf$(PDFZ) $(MKDIR_P) $(DESTDIR)$(pdfdir) $(INSTALL_DATA) nasmdoc.pdf$(PDFZ) $(DESTDIR)$(pdfdir) -install: install_html install_pdf +install: install_html # # Dummy rules that changes make behavior