mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
16 lines
No EOL
417 B
Makefile
16 lines
No EOL
417 B
Makefile
repos: $(_REPO_FILES)
|
|
|
|
# Step 2: Replace vars in repo files
|
|
%.repo: /etc/yum.repos.d/%.repo
|
|
cp /etc/yum.repos.d/$*.repo $*.repo
|
|
$(if $(findstring redhat,$*),sed -i "s/rhel8/rhel$(word 1,$(subst ., ,$(VERSION)))/g" $*.repo)
|
|
sed -i "s/\$$releasever/$(VERSION)/g" $*.repo
|
|
sed -i "s/\$$basearch/$(ARCH)/g" $*.repo
|
|
|
|
install-deps:
|
|
|
|
FILES=$(wildcard *.repo)
|
|
clean:
|
|
ifneq ($(FILES),)
|
|
rm -Rf $(FILES)
|
|
endif |