X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2FMakefile.in;h=3f2ed4507a5e4bc6fd206a7a82a30830ef4b1881;hp=e032d18b2d7fda35b5edfbffee7fdded98647f08;hb=ab28ebd489d7380f23e38705f2ce4c8385575d5e;hpb=ddd2ef55b78a62c4bc3daad18bef8a90e85a2052 diff --git a/restore/Makefile.in b/restore/Makefile.in index e032d18..3f2ed45 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -1,3 +1,5 @@ +# $Id: Makefile.in,v 1.9 2001/08/16 15:24:21 stelian Exp $ + top_srcdir= @top_srcdir@ srcdir= @srcdir@ @@ -5,39 +7,37 @@ srcdir= @srcdir@ CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ LDFLAGS:= $(LDFLAGS) @STATIC@ -LIBS= $(GLIBS) -le2p +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) +all:: $(PROG) $(MAN8) $(PROG): $(OBJS) $(DEPLIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) -install:: $(PROG) - $(INSTALLBIN) $(PROG) $(BINDIR) +$(MAN8): restore.8.in + sed -e "s|__DATE__|$(DATE)|g" \ + -e "s|__VERSION__|$(VERSION)|g" $< > $@ + +install:: all + $(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 + $(RM) -f $(PROG) $(MAN8) \#* *.s *.o *.a *~ core distclean:: clean $(RM) -f Makefile Makefile.old .depend