$NetBSD: patch-ag,v 1.3 2010/05/04 18:55:46 jym Exp $ --- misc/Makefile.orig 2005-05-24 00:28:15.000000000 +0000 +++ misc/Makefile 2005-05-24 00:30:05.000000000 +0000 @@ -24,10 +24,10 @@ $(MAKE) -C miniterm install: build - [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin - [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin - $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin - $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin + $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(PREFIX)/bin + $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(PREFIX)/sbin + $(BSD_INSTALL_SCRIPT) $(INSTALL_BIN) $(DESTDIR)$(PREFIX)/bin + $(BSD_INSTALL_SCRIPT) $(INSTALL_SBIN) $(DESTDIR)$(PREFIX)/sbin # No sense in installing miniterm on the Xen box. # $(MAKE) -C miniterm install @@ -39,4 +39,4 @@ $(CC) -c $(CFLAGS) -o $@ $< $(TARGETS): %: %.o Makefile - $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) $(LDFLAGS) -lxutil