diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-01 20:56:55 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-10 16:00:55 +0400 |
commit | 368812dc033d55609834cad2f7dd5e6a458019ef (patch) | |
tree | ab5ed07928130591ebdb64e77062a3070fe04615 | |
parent | fdeb1a2b1d96b84298b61f4e5d4fd0639613ef13 (diff) | |
download | dctrl-tools-368812dc033d55609834cad2f7dd5e6a458019ef.tar.gz |
Install & uninstall man pages
-rw-r--r-- | Makefile.am | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 2683d87..6a75d09 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,6 +19,21 @@ bin_PROGRAMS = \ tbl-dctrl/tbl-dctrl \ join-dctrl/join-dctrl +install-exec-hook: + cd $(DESTDIR)$(bindir) && \ + for a in $(GREP_ALIASES); do \ + rm -f $$a; $(LN_S) grep-dctrl $$a; \ + done + cd $(DESTDIR)$(mandir)/man1 && \ + for a in $(GREP_ALIASES); do \ + rm -f $$a.1; $(LN_S) grep-dctrl.1 $$a.1; \ + done +uninstall-local: + for a in $(GREP_ALIASES); do \ + rm -f $(DESTDIR)$(bindir)/$$a; \ + rm -f $(DESTDIR)$(mandir)/man1/$$a.1; \ + done + sbin_SCRIPTS = sync-available/sync-available AM_CPPFLAGS = \ |