1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 13:28:35 +00:00
morpheus/mkfile

34 lines
644 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

top = `{pwd}
`{ test -e config.mk || cp config.def.mk config.mk }
<config.mk
allpkgs = `{ls -d pkgs/*}
pkgs = ${allpkgs:pkgs/%=%}
help:VQ:
printf 'Usage: mk pkg...\n'
printf '\nTo build all the targets in pkgs/, run `mk world´\n'
all world:VQ: $pkgs
clean:V:
rm -f .cache/* pkgs.mk
clean-all clean-world:V: clean
rm -rf ${root}
fetchpkgs = ${pkgs:%=%-fetch}
fetch-all fetch-world:VQ: ${fetchpkgs}
`{ mkdir -p src }
`{ mkdir -p .cache }
# generate a pkgs.mk file with the targets for all packages in pkgs/
`{ stuff/generate-pkgs.sh pkgs > pkgs.mk }
<pkgs.mk
bootable:V:
stuff/create-bootable "$root" morpheus-$arch-$version.img