charon-cmd: Add man page for charon-cmd(8)
[strongswan.git] / src / charon-cmd / Makefile.am
index ff360c1..4539173 100644 (file)
@@ -1,8 +1,12 @@
 sbin_PROGRAMS = charon-cmd
+CLEANFILES = charon-cmd.8
+dist_man8_MANS = charon-cmd.8
+EXTRA_DIST = charon-cmd.8.in
 
 charon_cmd_SOURCES = \
        cmd/cmd_options.h cmd/cmd_options.c \
        cmd/cmd_connection.h cmd/cmd_connection.c \
+       cmd/cmd_creds.h cmd/cmd_creds.c \
        charon-cmd.c
 
 charon-cmd.o : $(top_builddir)/config.status
@@ -22,3 +26,9 @@ charon_cmd_LDADD = \
        $(top_builddir)/src/libhydra/libhydra.la \
        $(top_builddir)/src/libcharon/libcharon.la \
        -lm $(PTHREADLIB) $(DLLIB)
+
+charon-cmd.8 : charon-cmd.8.in
+       $(AM_V_GEN) \
+       sed \
+       -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
+       $(srcdir)/$@.in > $@