diff options
Diffstat (limited to 'etc/pacman.d/Makefile.am')
-rw-r--r-- | etc/pacman.d/Makefile.am | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/etc/pacman.d/Makefile.am b/etc/pacman.d/Makefile.am index 341b3efa..e1f33c76 100644 --- a/etc/pacman.d/Makefile.am +++ b/etc/pacman.d/Makefile.am @@ -1,9 +1,17 @@ pkgsysconfdir = ${sysconfdir}/pacman.d -dist_pkgsysconf_DATA = community core extra release testing unstable +dist_pkgsysconf_DATA = mirrorlist +EXTRA_DIST = mirrorlist.in +# +# Files that should be removed, but which Automake does not know. +MOSTLYCLEANFILES = $(dist_pkgsysconf_DATA) -$(dist_pkgsysconf_DATA): mirrorlist - sed "s|@@REPO@@|$@|g" <$< >$@ +$(dist_pkgsysconf_DATA): Makefile + rm -f $@ $@.tmp + sed \ + -e 's|@CARCH[@]|$(CARCH)|g' \ + $(srcdir)/mirrorlist.in >$@.tmp + mv $@.tmp $@ -clean-local: - rm -f $(dist_pkgsysconf_DATA) +mirrorlist: $(srcdir)/mirrorlist.in +# vim:set ts=2 sw=2 noet: |