summaryrefslogtreecommitdiff
path: root/archivers/gcpio/patches/patch-aa
blob: 24bdfea0bc0fa8c6c31c54957ef567af985a47b7 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-aa,v 1.5 2004/06/06 21:29:33 minskim Exp $

--- Makefile.in.orig	Wed Dec 20 11:28:30 1995
+++ Makefile.in
@@ -66,9 +66,9 @@
 exec_prefix = @exec_prefix@
 
 # Prefix for each installed program, normally empty or `g'.
-binprefix = 
+binprefix = @program_prefix@
 # Prefix for each installed man page, normally empty or `g'.
-manprefix = 
+manprefix = @program_prefix@
 
 
 # Where to install the cpio and mt executables.
@@ -101,7 +101,7 @@
 SRCS = copyin.c copyout.c copypass.c defer.c dstring.c global.c \
 main.c tar.c util.c error.c getopt.c getopt1.c filemode.c version.c \
 rtapelib.c dirname.c idcache.c makepath.c xmalloc.c stripslash.c \
-userspec.c xstrdup.c bcopy.c fnmatch.c mkdir.c strdup.c
+userspec.c xstrdup.c bcopy.c fnmatch.c mkdir.c
 OBJS = copyin.o copyout.o copypass.o defer.o dstring.o global.o \
 main.o tar.o util.o error.o getopt.o getopt1.o filemode.o version.o \
 $(RTAPELIB) dirname.o idcache.o makepath.o xmalloc.o stripslash.o \
@@ -117,17 +117,14 @@
 configure configure.in mkinstalldirs install-sh $(MT_SRCS) rmt.c tcexparg.c \
 alloca.c cpio.texi cpio.info texinfo.tex
 
-all:	@PROGS@
+all:	cpio
 
 .c.o:
 	$(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
 
 install:: installdirs all $(srcdir)/cpio.1 $(srcdir)/mt.1
 	$(INSTALL_PROGRAM) cpio $(bindir)/$(binprefix)cpio
-	test ! -f mt || $(INSTALL_PROGRAM) mt $(bindir)/$(binprefix)mt
-	-test ! -f rmt || $(INSTALL_PROGRAM) rmt $(libexecdir)/rmt
 	-$(INSTALL_DATA) $(srcdir)/cpio.1 $(mandir)/$(manprefix)cpio.$(manext)
-	-test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(mandir)/$(manprefix)mt.$(manext)
 
 installdirs:
 	$(srcdir)/mkinstalldirs $(bindir) $(libexecdir) $(mandir) $(infodir)