diff options
author | Jürgen Hötzel <juergen@archlinux.org> | 2007-01-29 22:18:31 +0000 |
---|---|---|
committer | Jürgen Hötzel <juergen@archlinux.org> | 2007-01-29 22:18:31 +0000 |
commit | 13f9fc4d19661b75c6f9989082aaf2b222547fe7 (patch) | |
tree | 424414095c1220fd27a19ff611673bd97e19594c /etc/pacman.d/Makefile.am | |
parent | 1629355ef06c16c422fe959affde83552c96b5ae (diff) | |
download | pacman-13f9fc4d19661b75c6f9989082aaf2b222547fe7.tar.xz |
* Fix building outside $(srcdir).
* Removed ./gen-mirrorlist.sh invocation from configure script:
Mirror-files are generated by make, not configure.
Diffstat (limited to 'etc/pacman.d/Makefile.am')
-rw-r--r-- | etc/pacman.d/Makefile.am | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/etc/pacman.d/Makefile.am b/etc/pacman.d/Makefile.am index 187c63f2..5fedc6ef 100644 --- a/etc/pacman.d/Makefile.am +++ b/etc/pacman.d/Makefile.am @@ -1,14 +1,9 @@ -EXTRA_DIST = community current extra release unstable +pkgsysconfdir = ${sysconfdir}/pacman.d +dist_pkgsysconf_DATA = community current extra release unstable -clean: +$(dist_pkgsysconf_DATA): mirrorlist + sed "s|@@REPO@@|$@|g" <$< >$@ -install-data-hook: - mkdir -p $(DESTDIR)$(sysconfdir)/pacman.d ; \ - for j in $(EXTRA_DIST); do \ - $(INSTALL) -c -m 644 $(srcdir)/$$j $(DESTDIR)$(sysconfdir)/pacman.d/$$j ; \ - done +clean: + rm $(dist_pkgsysconf_DATA) -uninstall-hook: - for j in $(EXTRA_DIST); do \ - rm -f $(DESTDIR)$(sysconfdir)/pacman.d/$$j ; \ - done |