$NetBSD: patch-Makefile,v 1.4 2017/03/20 16:23:20 schmonz Exp $

DESTDIR support, and don't hardcode numeric IDs into binaries.

--- Makefile.orig	1998-06-15 10:53:16.000000000 +0000
+++ Makefile
@@ -4,6 +4,14 @@ SHELL=/bin/sh
 
 default: it
 
+auto_destdir.c: \
+auto-str conf-destdir
+	./auto-str auto_qmail `head -1 conf-destdir` > auto_destdir.c
+
+auto_destdir.o: \
+compile auto_destdir.c
+	./compile auto_destdir.c
+
 addresses.0: \
 addresses.5
 	nroff -man addresses.5 > addresses.0
@@ -110,7 +118,7 @@ auto_split.o: \
 compile auto_split.c
 	./compile auto_split.c
 
-auto_uids.c: \
+auto_uids_orig.c: \
 auto-uid auto-gid conf-users conf-groups
 	( ./auto-uid auto_uida `head -1 conf-users` \
 	&&./auto-uid auto_uidd `head -2 conf-users | tail -1` \
@@ -122,7 +130,7 @@ auto-uid auto-gid conf-users conf-groups
 	&&./auto-uid auto_uids `head -8 conf-users | tail -1` \
 	&&./auto-gid auto_gidq `head -1 conf-groups` \
 	&&./auto-gid auto_gidn `head -2 conf-groups | tail -1` \
-	) > auto_uids.c.tmp && mv auto_uids.c.tmp auto_uids.c
+	) > auto_uids_orig.c.tmp && mv auto_uids_orig.c.tmp auto_uids_orig.c
 
 auto_uids.o: \
 compile auto_uids.c
