From 13f9fc4d19661b75c6f9989082aaf2b222547fe7 Mon Sep 17 00:00:00 2001 From: Jürgen Hötzel Date: Mon, 29 Jan 2007 22:18:31 +0000 Subject: * Fix building outside $(srcdir). * Removed ./gen-mirrorlist.sh invocation from configure script: Mirror-files are generated by make, not configure. --- etc/pacman.d/Makefile.am | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'etc') 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 -- cgit v1.2.3-70-g09d2