aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/nbtscan/nbtscan-1.5.1-makefile.patch
blob: 300f2a6aefa6f900d628bb7bd1de14ebc8b762e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- nbtscan-1.5.1a/Makefile.in.orig
+++ nbtscan-1.5.1a/Makefile.in
@@ -5,6 +5,7 @@
 OBJECTS=nbtscan.o statusq.o range.o list.o
 DEFS=@DEFS@
 TARGET=@TARGET@
+DESTDIR=
 
 prefix      = @prefix@
 exec_prefix = @exec_prefix@
@@ -14,7 +15,8 @@
 	$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
 
 install:
-	$(INSTALL) $(TARGET) $(BINDIR)/$(TARGET)
+	mkdir -p $(DESTDIR)$(BINDIR)
+	$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
 
 nbtscan.o: nbtscan.c statusq.h range.h list.h
 	$(CC) $(CFLAGS) $(DEFS) -c nbtscan.c