summaryrefslogtreecommitdiff
path: root/sysutils/xentools20/patches/patch-ag
blob: 9180b7c5de304c3a7e6fec13c8a544d672bac230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ag,v 1.2 2005/05/24 16:02:08 xtraeme 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) $(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM_DIR) $(PREFIX)/sbin
+	$(BSD_INSTALL_SCRIPT) $(INSTALL_BIN) $(PREFIX)/bin
+	$(BSD_INSTALL_SCRIPT) $(INSTALL_SBIN) $(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