X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2FMakefile.in;h=527e9100e9b2d20e8da3972d12231137d179eedc;hb=2c99ad2dc97978b437794b14d58d9ae698ecabb9;hp=af0b5936996d96574565908099e0c4c4267d8c73;hpb=4d5ed2f38cb1dce0244a05f94c8aec7f725a1f33;p=dump.git diff --git a/restore/Makefile.in b/restore/Makefile.in index af0b593..527e910 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.6 2001/02/21 16:13:05 stelian Exp $ +# $Id: Makefile.in,v 1.8 2001/04/12 16:03:30 stelian Exp $ top_srcdir= @top_srcdir@ srcdir= @srcdir@ @@ -11,39 +11,33 @@ LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ DEPLIBS= ../compat/lib/libcompat.a PROG= restore -LINKS= ${BINDIR}/restore ${BINDIR}/rrestore +RPROG= rrestore +LINKS= ${SBINDIR}/restore ${SBINDIR}/rrestore SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \ utilities.c OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \ utilities.o ../common/dumprmt.o MAN8= restore.8 -MLINKS= restore.8 $(MANDIR)/rrestore.8 +RMAN8= rrestore.8 -all:: $(PROG) restore.8 +all:: $(PROG) $(MAN8) $(PROG): $(OBJS) $(DEPLIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) -restore.8: restore.8.in +$(MAN8): restore.8.in sed -e "s|__DATE__|$(DATE)|g" \ -e "s|__VERSION__|$(VERSION)|g" $< > $@ install:: all - $(INSTALLBIN) $(PROG) $(BINDIR) + $(INSTALL) -d $(SBINDIR) $(MANDIR) + $(INSTALLBIN) $(PROG) $(SBINDIR) $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR) - @set $(LINKS) $(MLINKS); \ - while test $$# -ge 2; do \ - l=$(DESTDIR)$$1; \ - shift; \ - t=$(DESTDIR)$$1; \ - shift; \ - echo $$t -\> $$l; \ - $(RM) -f $$t; \ - $(LN_S) $$l $$t; \ - done; true + cd $(SBINDIR) && $(RM) -f $(RPROG) && $(LN_S) $(PROG) $(RPROG) + cd $(MANDIR) && $(RM) -f $(RMAN8) && $(LN_S) $(MAN8) $(RMAN8) clean:: - $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8 + $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core distclean:: clean $(RM) -f Makefile Makefile.old .depend