aboutsummaryrefslogtreecommitdiff
path: root/net/xprobe/files/patch-Makefile_in
blob: 2d6a9504792fb9ace82de4dfd1cef8c2802945e2 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- Makefile.in.orig	Wed Jul 25 18:55:30 2001
+++ Makefile.in	Wed Jul 25 18:59:54 2001
@@ -21,12 +21,16 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 
+DESTDIR=
+
 CC=@CC@
 INSTALL=@INSTALL@
+INSTALL_PROGRAM=@INSTALL_PROGRAM@
+INSTALL_DATA=@INSTALL_DATA@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-bindir=@bindir@
-mandir=@mandir@
+BINDIR=@bindir@
+MANDIR=@mandir@
 PACKAGE=@PACKAGE@
 VERSION=@VERSION@
 CPPFLAGS=@CPPFLAGS@
@@ -41,7 +45,9 @@ icmp_infr.o utils.o logic_tree.o pcap_if
 FILES=$(SOURCES) $(INCLUDES) AUTHORS CREDITS Changelog LICENSE Makefile.in \
 README TODO config.h.in configure configure.in cfg-scripts xprobe.1
 
-x: $(OBJS)
+all:	xprobe
+
+xprobe: $(OBJS)
 	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
 
 .c.o: $(INCLUDES)
@@ -52,9 +58,9 @@ clean:
 distclean: clean
 	rm -f config.h config.cache config.log config.status Makefile
 
-install: x
-	$(INSTALL) -m 0755 -g bin -o root x $(bindir)
-	$(INSTALL) -m 0444  -g bin -o root xprobe.1 $(mandir)/man1
+install: xprobe
+	$(INSTALL_PROGRAM) -m 755 xprobe $(DESTDIR)$(BINDIR)
+	$(INSTALL_DATA) xprobe.1 $(DESTDIR)$(MANDIR)/man1
 
 configure: configure.in
 	autoheader