]> git.wh0rd.org - dump.git/blobdiff - rmt/Makefile.in
Version 0.4b7.
[dump.git] / rmt / Makefile.in
index 973d9425adb1db318a0efd7a301924091e6b49e3..e1d44406837c61d453e205cd15c35d6c20371ffd 100644 (file)
@@ -18,17 +18,21 @@ SRCS=               rmt.c
 OBJS=          rmt.o
 MAN8=          rmt.8
 
-all::          $(PROG)
+all::          $(PROG) rmt.8
 
 $(PROG):       $(OBJS) $(DEPLIBS)
        $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
 
-install::      $(PROG)
+rmt.8:         rmt.8.in
+       sed -e "s|__DATE__|$(DATE)|g" \
+           -e "s|__VERSION__|$(VERSION)|g" $< > $@
+
+install::      all
        $(INSTALLBIN) $(PROG) $(BINDIR)
        $(INSTALLMAN) $(srcdir)/$(MAN8) $(MANDIR)
 
 clean::
-       rm -f $(PROG) \#* *.s *.o *.a *~ core
+       rm -f $(PROG) \#* *.s *.o *.a *~ core rmt.8
 
 distclean::    clean
        rm -f Makefile Makefile.old .depend