$NetBSD: patch-Makefile,v 1.1 2023/04/24 17:38:00 schmonz Exp $ DESTDIR support. --- Makefile.orig 2001-06-05 03:08:46.000000000 +0000 +++ Makefile @@ -69,6 +69,14 @@ selectcheckpw: warn-auto.sh selectcheckp > selectcheckpw chmod 755 selectcheckpw +auto_destdir.c: \ +auto-str conf-destdir + ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c + +auto_destdir.o: \ +compile auto_destdir.c + ./compile auto_destdir.c + auto_home.c: auto-str conf-home ./auto-str auto_home `head -1 conf-home` > auto_home.c @@ -364,8 +372,8 @@ byte_diff.c \ byte.h ./compile byte_diff.c -install: load install.o hier.o auto_home.o unix.a byte.a - ./load install hier.o auto_home.o unix.a byte.a +install: load install.o hier.o auto_destdir.o unix.a byte.a + ./load install hier.o auto_destdir.o unix.a byte.a auto-int8.o: compile \ auto-int8.c \ @@ -387,8 +395,8 @@ install.c \ buffer.h strerr.h error.h open.h readwrite.h exit.h ./compile install.c -instcheck: load instcheck.o hier.o auto_home.o unix.a byte.a - ./load instcheck hier.o auto_home.o unix.a byte.a +instcheck: load instcheck.o hier.o auto_destdir.o unix.a byte.a + ./load instcheck hier.o auto_destdir.o unix.a byte.a str_chr.o: compile \ str_chr.c \