]> git.wh0rd.org - dump.git/blobdiff - restore/Makefile.in
Added CVS Id.
[dump.git] / restore / Makefile.in
index e032d18b2d7fda35b5edfbffee7fdded98647f08..686a185cb0af23f39de5afcba96ab4690468dbd2 100644 (file)
@@ -1,3 +1,5 @@
+# $Id: Makefile.in,v 1.4 1999/10/11 13:31:12 stelian Exp $
+
 top_srcdir=    @top_srcdir@
 srcdir=                @srcdir@
 
@@ -17,12 +19,16 @@ OBJS=               dirs.o interactive.o main.o restore.o symtab.o tape.o \
 MAN8=          restore.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 +43,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