summaryrefslogtreecommitdiffstats
path: root/etc/pacman.d/Makefile.am
blob: e1f33c76ac4141f47ba65c093c0110c0d2ca886c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pkgsysconfdir = ${sysconfdir}/pacman.d
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): Makefile
	rm -f $@ $@.tmp
	sed \
		-e 's|@CARCH[@]|$(CARCH)|g' \
		$(srcdir)/mirrorlist.in >$@.tmp
	mv $@.tmp $@

mirrorlist: $(srcdir)/mirrorlist.in

# vim:set ts=2 sw=2 noet: