X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2FMakefile.in;h=c0babd97dabf3eba7cda8b4e8b9a3c66bdf06545;hb=97d9098250fd2a49d9ef70d6bf93f49badff0f6c;hp=323d14f52240615775056a215c4a638868233d07;hpb=c38e5b6a9c658f06d9b27f33e9db131ffa23d947;p=dump.git diff --git a/restore/Makefile.in b/restore/Makefile.in index 323d14f..c0babd9 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.5 2000/05/29 14:17:37 stelian Exp $ +# $Id: Makefile.in,v 1.10 2002/01/02 10:13:16 stelian Exp $ top_srcdir= @top_srcdir@ srcdir= @srcdir@ @@ -6,44 +6,38 @@ srcdir= @srcdir@ @MCONFIG@ CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ -LDFLAGS:= $(LDFLAGS) @STATIC@ -LIBS= $(GLIBS) -le2p @READLINE@ +LDFLAGS= @LDOPTS@ @STATIC@ +LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ @BZLIB@ 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) - $(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 + $(INSTALL) -d $(SBINDIR) $(MANDIR) + $(INSTALLBIN) $(PROG) $(SBINDIR) + $(INSTALLMAN) $(MAN8) $(MANDIR) + 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