summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2007-01-29 22:18:31 +0000
committerJürgen Hötzel <juergen@archlinux.org>2007-01-29 22:18:31 +0000
commit13f9fc4d19661b75c6f9989082aaf2b222547fe7 (patch)
tree424414095c1220fd27a19ff611673bd97e19594c /etc
parent1629355ef06c16c422fe959affde83552c96b5ae (diff)
downloadpacman-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')
-rw-r--r--etc/pacman.d/Makefile.am17
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