pkgsrc/filesystems/u9fs/patches/patch-aa
agc e30760a745 Change to create directories before copying files to them. Won't matter in
the normal case, but matters in bulk builds in our new NO_MTREE order.

Do all of the work in the package's install target, too.
2007-05-13 15:34:05 +00:00

27 lines
600 B
Text

$NetBSD: patch-aa,v 1.2 2007/05/13 15:34:05 agc Exp $
--- makefile 2007/04/23 21:54:35 1.1
+++ makefile 2007/04/23 21:55:35
@@ -49,16 +49,19 @@
fcall.h\
plan9.h
-u9fs: $(OFILES)
+u9fs all: $(OFILES)
$(LD) $(LDFLAGS) -o u9fs $(OFILES) $(LDTAIL)
-%.o: %.c $(HFILES)
+.c.o:
$(CC) $(CFLAGS) -c $*.c
clean:
rm -f *.o u9fs
install: u9fs
- cp u9fs ../../bin
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/libexec
+ ${BSD_INSTALL_PROGRAM} u9fs ${PREFIX}/libexec/
+ ${BSD_INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man8
+ ${BSD_INSTALL_MAN} u9fs.8 ${PREFIX}/${PKGMANDIR}/man8/
.PHONY: clean install