X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2FMakefile.in;h=d8257fd86db44dc0462cacb196176a3306daa4af;hp=dff9e1fe5b64f0da527c148bc5a27894c49a3cc4;hb=8d4197bb9ba5bbcef21409231ed8903b0cac353a;hpb=1227625a12a66e0ded78a1997c2d23f23202a382 diff --git a/restore/Makefile.in b/restore/Makefile.in index dff9e1f..d8257fd 100644 --- a/restore/Makefile.in +++ b/restore/Makefile.in @@ -3,7 +3,7 @@ srcdir= @srcdir@ @MCONFIG@ -CFLAGS= @CCOPTS@ -pipe $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ +CFLAGS= @CCOPTS@ -pipe $(OPT) $(DEFS) $(GINC) $(INC) @RESTOREDEBUG@ LDFLAGS:= $(LDFLAGS) @STATIC@ LIBS= $(GLIBS) -le2p DEPLIBS= ../compat/lib/libcompat.a @@ -15,14 +15,18 @@ SRCS= dirs.c interactive.c main.c restore.c symtab.c tape.c \ OBJS= dirs.o interactive.o main.o restore.o symtab.o tape.o \ utilities.o ../common/dumprmt.o MAN8= restore.8 -MLINKS= $(MANDIR)/restore.8 $(MANDIR)/rrestore.8 +MLINKS= restore.8 $(MANDIR)/rrestore.8 -all:: $(PROG) +all:: $(PROG) restore.8 $(PROG): $(OBJS) $(DEPLIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS) -install:: $(PROG) +restore.8: 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); \ @@ -37,7 +41,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