- Automatically correct paths in manpages and configuration files. Patch
and script from Andre Lucas <andre.lucas@dial.pipex.com>
- Removed credits from README to CREDITS file, updated.
diff --git a/Makefile.in b/Makefile.in
index a13c551..f4e3ff4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,9 +6,14 @@
mandir=@mandir@
sysconfdir=@sysconfdir@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH=@srcdir@
+
SSH_PROGRAM=@bindir@/ssh
ASKPASS_LOCATION=@libexecdir@/ssh
ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
+FIXPATHS=@top_srcdir@/fixpaths
CC=@CC@
PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
@@ -43,7 +48,7 @@
radix.o readpass.o rsa.o tildexpand.o ttymodes.o uidswap.o \
xmalloc.o
-all: $(OBJS) $(TARGETS)
+all: $(OBJS) $(TARGETS) manpages
$(OBJS): config.h
@@ -80,7 +85,12 @@
$(CC) $(CFLAGS) $(GNOME_CFLAGS) -o $@ gnome-ssh-askpass.c $(GNOME_LIBS)
clean:
- rm -f *.o core $(TARGETS) config.status config.cache config.log
+ rm -f $(OBJS) $(TARGETS) config.status config.cache config.log core \
+ *.1 *.8 sshd_config ssh_config
+
+manpages:
+ $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/*.1.in $(srcdir)/*.8.in \
+ $(srcdir)/ssh_config.in $(srcdir)/sshd_config.in
install: all
$(INSTALL) -d $(bindir)