+# $Id: Makefile.in,v 1.5 2001/04/06 10:09:40 stelian Exp $
+
top_srcdir= @top_srcdir@
srcdir= @srcdir@
OBJS= rmt.o
MAN8= rmt.8
-all:: $(PROG)
+all:: $(PROG) rmt.8
$(PROG): $(OBJS) $(DEPLIBS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
-install:: $(PROG)
- $(INSTALLBIN) $(PROG) $(BINDIR)
+rmt.8: rmt.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)
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