summaryrefslogtreecommitdiffstats
path: root/doc/man/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/Makefile.am')
-rw-r--r--doc/man/Makefile.am16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
new file mode 100644
index 0000000..4a80bb4
--- /dev/null
+++ b/doc/man/Makefile.am
@@ -0,0 +1,16 @@
+EXTRA_DIST = kmymoney2.1
+
+MOSTLYCLEANFILES = kmymoney2.1.gz
+
+BUILT_SOURCES = kmymoney2.1.gz
+
+install-data-hook: kmymoney2.1.gz
+ -rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kmymoney2/kmymoney2.1
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
+ $(INSTALL_DATA) kmymoney2.1.gz $(DESTDIR)$(mandir)/man1/kmymoney2.1.gz
+
+kmymoney2.1.gz: kmymoney2.1
+ gzip -9 -c -N $(top_srcdir)/$(subdir)/kmymoney2.1 > kmymoney2.1.gz
+
+uninstall-hook:
+ -rm -f $(DESTDIR)$(mandir)/man1/kmymoney2.1.gz