mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +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:
|
install-deps:
|
||||||
dnf install -y lorax xorriso podman git rpm-ostree
|
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:
|
clean:
|
||||||
rm -f boot.iso
|
rm -f boot.iso
|
||||||
rm -f deploy.iso
|
rm -f deploy.iso
|
||||||
rm -Rf $(image_name)-$(version)
|
rm -Rf $(image_name)-$(version)
|
||||||
for dir in $(subdir) ; do \
|
rm lorax_templates/*.tmpl
|
||||||
$(MAKE) -C $$dir clean ; \
|
rm xorriso/input.txt
|
||||||
done
|
rm xorriso/gen_input.sh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
%.tmpl:
|
|
||||||
sed 's/@IMAGE_NAME@/$(image_name)' $*.in > $*
|
|
||||||
sed 's/@IMAGE_REPO@/$(image_repo)' $* > $*
|
|
||||||
sed 's/@VERSION@/$(version)' $* $*
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm *.tmpl
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
input.txt: gen_input.sh
|
|
||||||
bash gen_input.sh "$(base_dir)" > input.txt
|
|
||||||
|
|
||||||
%.sh:
|
|
||||||
sed 's/@IMAGE_NAME@/$(image_name)-$(version)/' $*.in > $*
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm input.txt
|
|
||||||
rm gen_input.sh
|
|
||||||
|
|
@ -6,7 +6,6 @@ echo "-boot_image any replay"
|
||||||
echo "-volid Fedora-S-dvd-x86_64-39"
|
echo "-volid Fedora-S-dvd-x86_64-39"
|
||||||
echo "-joliet on"
|
echo "-joliet on"
|
||||||
echo "-compliance joliet_long_names"
|
echo "-compliance joliet_long_names"
|
||||||
cd $1
|
|
||||||
for file in $(find @IMAGE_NAME@)
|
for file in $(find @IMAGE_NAME@)
|
||||||
do
|
do
|
||||||
echo "-map $(pwd)/${file} ${file}"
|
echo "-map $(pwd)/${file} ${file}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue