diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-05-15 16:27:30 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-05-15 16:27:30 +0100 |
commit | 5b1cf02f2ea224922661495af32d46b024e28eef (patch) | |
tree | 11af8ac2e2e9429803a4508b8d2f648fd99ce0bc | |
parent | 11b90bc9591b4b101efef1f8a9a0d9656d2953c9 (diff) | |
download | rtmux-5b1cf02f2ea224922661495af32d46b024e28eef.tar.gz rtmux-5b1cf02f2ea224922661495af32d46b024e28eef.tar.bz2 rtmux-5b1cf02f2ea224922661495af32d46b024e28eef.zip |
Rename tmux.1.in back to tmux.1 and generate tmux.1.{mdoc,man} instead.
-rw-r--r-- | Makefile.am | 16 | ||||
-rw-r--r-- | tmux.1 (renamed from tmux.1.in) | 0 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am index c131940a..c746b3d9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,14 +2,12 @@ # Obvious program stuff. bin_PROGRAMS = tmux -nodist_man1_MANS = tmux.1 -CLEANFILES = tmux.1 +CLEANFILES = tmux.1.mdoc tmux.1.man # Distribution tarball options. EXTRA_DIST = \ CHANGES FAQ README TODO examples compat \ - array.h compat.h tmux.h osdep-*.c mdoc2man.awk \ - tmux.1.in + array.h compat.h tmux.h osdep-*.c mdoc2man.awk tmux.1 dist-hook: grep "^#found_debug=" configure find $(distdir) -name .svn -type d|xargs rm -Rf @@ -237,13 +235,15 @@ if NO_CFMAKERAW nodist_tmux_SOURCES += compat/cfmakeraw.c endif -# Build tmux.1 in the right format. -tmux.1: tmux.1.in +# Install tmux.1 in the right format. +install-exec-hook: if test x@MANFORMAT@ = xmdoc; then \ - cp tmux.1.in tmux.1; \ + cp tmux.1 tmux.1.mdoc; \ else \ - $(AWK) -fmdoc2man.awk <tmux.1.in >tmux.1; \ + $(AWK) -fmdoc2man.awk <tmux.1 >tmux.1.man; \ fi + $(MKDIR_P) $(DESTDIR)$(mandir)/man1 + $(INSTALL_DATA) tmux.1.@MANFORMAT@ $(DESTDIR)$(mandir)/man1/tmux.1 # Update SF web site. upload-index.html: update-index.html |