diff options
Diffstat (limited to 'scripts/Makefile.am')
-rw-r--r-- | scripts/Makefile.am | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index adb259a7..b5767ac6 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -4,9 +4,7 @@ AUTOMAKE_OPTIONS = std-options SUBDIRS = po bin_SCRIPTS = \ - $(OURSCRIPTS) \ - repo-remove \ - repo-elephant + $(OURSCRIPTS) OURSCRIPTS = \ makepkg \ @@ -105,4 +103,18 @@ repo-elephant: $(srcdir)/repo-add.sh.in rm -f repo-elephant $(LN_S) repo-add repo-elephant +install-data-hook: + cd $(DESTDIR)$(bindir) && \ + ( $(LN_S) repo-add repo-elephant || \ + ln repo-add repo-elephant || \ + cp repo-add repo-elephant ) + cd $(DESTDIR)$(bindir) && \ + ( $(LN_S) repo-add repo-remove || \ + ln repo-add repo-remove || \ + cp repo-add repo-remove ) + +uninstall-hook: + cd $(DESTDIR)$(bindir) && \ + $(RM) repo-remove repo-elephant + # vim:set ts=2 sw=2 noet: |