summaryrefslogtreecommitdiff
path: root/etc/pacman.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/pacman.d')
-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