X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2FMakefile.in;h=397302fdc725c0e31e2e2931faae4f6931c33113;hb=aa73f8472f7698b233f6b4f60c1fd213a69e077d;hp=dff9e1fe5b64f0da527c148bc5a27894c49a3cc4;hpb=1227625a12a66e0ded78a1997c2d23f23202a382;p=dump.git diff --git a/restore/Makefile.in b/restore/Makefile.in index dff9e1f..397302f 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -1,15 +1,17 @@ +# $Id: Makefile.in,v 1.7 2001/04/06 10:09:40 stelian Exp $ + top_srcdir= @top_srcdir@ srcdir= @srcdir@ @MCONFIG@ -CFLAGS= @CCOPTS@ -pipe $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ +CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ LDFLAGS:= $(LDFLAGS) @STATIC@ -LIBS= $(GLIBS) -le2p +LIBS= $(GLIBS) -le2p @READLINE@ @ZLIB@ DEPLIBS= ../compat/lib/libcompat.a PROG= restore -LINKS= ${BINDIR}/restore ${BINDIR}/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 \ @@ -17,19 +19,24 @@ OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \ MAN8= restore.8 MLINKS= $(MANDIR)/restore.8 $(MANDIR)/rrestore.8 -all:: $(PROG) +all:: $(PROG) restore.8 $(PROG): $(OBJS) $(DEPLIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) -install:: $(PROG) - $(INSTALLBIN) $(PROG) $(BINDIR) +restore.8: 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; \ + l=$$1; \ shift; \ - t=$(DESTDIR)$$1; \ + t=$$1; \ shift; \ echo $$t -\> $$l; \ $(RM) -f $$t; \ @@ -37,7 +44,7 @@ install:: $(PROG) done; true clean:: - $(RM) -f $(PROG) \#* *.s *.o *.a *~ core + $(RM) -f $(PROG) \#* *.s *.o *.a *~ core restore.8 distclean:: clean $(RM) -f Makefile Makefile.old .depend