mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
single makefile
This commit is contained in:
parent
81bcbb56ca
commit
b87f5db94d
4 changed files with 19 additions and 21 deletions
23
Makefile
23
Makefile
|
|
@ -27,11 +27,26 @@ $(image_name)-$(version):
|
|||
install-deps:
|
||||
dnf install -y lorax xorriso podman git rpm-ostree
|
||||
|
||||
|
||||
|
||||
lorax_templates/%.tmpl: lorax_templates/%.tmpl.in
|
||||
sed 's/@IMAGE_NAME@/$(image_name)' $*.in > $*
|
||||
sed 's/@IMAGE_REPO@/$(image_repo)' $* > $*
|
||||
sed 's/@VERSION@/$(version)' $* $*
|
||||
|
||||
|
||||
|
||||
xorriso/input.txt: xorriso/gen_input.sh
|
||||
bash xorriso/gen_input.sh > input.txt
|
||||
|
||||
xorriso/%.sh: xorriso/%.sh.in
|
||||
sed 's/@IMAGE_NAME@/$(image_name)-$(version)/' $*.in > $*
|
||||
|
||||
|
||||
clean:
|
||||
rm -f boot.iso
|
||||
rm -f deploy.iso
|
||||
rm -Rf $(image_name)-$(version)
|
||||
for dir in $(subdir) ; do \
|
||||
$(MAKE) -C $$dir clean ; \
|
||||
done
|
||||
|
||||
rm lorax_templates/*.tmpl
|
||||
rm xorriso/input.txt
|
||||
rm xorriso/gen_input.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue