mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-14 05:15:11 -05:00
a6129bb789
Fix up everything in the etc/ directory so it is built at make-time and not configure-time. This reduces configure generated files to just the makefiles, which is the correct way to do things. This also allows a switch from @@REPO@@ to the more sane @REPO@ in mirrorlist.in, and kills the two-part generation of the mirror files. Signed-off-by: Dan McGee <dan@archlinux.org>
23 lines
614 B
Makefile
23 lines
614 B
Makefile
pkgsysconfdir = ${sysconfdir}/pacman.d
|
|
dist_pkgsysconf_DATA = community current extra release testing unstable
|
|
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|@REPO[@]|$@|g" \
|
|
-e 's|@CARCH[@]|$(CARCH)|g' \
|
|
$(srcdir)/mirrorlist.in >$@.tmp
|
|
mv $@.tmp $@
|
|
|
|
|
|
community: $(srcdir)/mirrorlist.in
|
|
current: $(srcdir)/mirrorlist.in
|
|
extra: $(srcdir)/mirrorlist.in
|
|
release: $(srcdir)/mirrorlist.in
|
|
testing: $(srcdir)/mirrorlist.in
|
|
unstable: $(srcdir)/mirrorlist.in
|