1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 11:48:34 +00:00
morpheus/mkfile

25 lines
652 B
Plaintext
Raw Normal View History

2014-02-27 12:41:37 +00:00
<config.mk
allpkgs = `{ls pkgs/*}
pkgs = ${allpkgs:pkgs/%=%}
help:VQ:
echo 'Usage: mk <pkg>'
echo '\nTo build all the targets in pkgs/, run `mk world´'
all world:VQ: $pkgs
clean:V:
2014-02-28 18:31:14 +00:00
rm -f .state/* pkgs.mk
2014-02-27 12:41:37 +00:00
# generate a pkgs.mk file with the tarkets for all packages in pkgs/
2014-02-28 12:36:16 +00:00
`{ mkdir -p src }
2014-02-27 12:41:37 +00:00
`{ mkdir -p .state }
`{ echo '# auto-generated file, do not edit' > pkgs.mk }
`{ cd pkgs && for pkg in *; do cat $pkg | sed -e "s,^build:,$pkg:QP./stuff/cmp-pkgs: pkgs/$pkg," >> ../pkgs.mk && echo -e '\tcd $top && cp pkgs/$target .state/$target\n' >> ../pkgs.mk; done }
2014-02-27 12:41:37 +00:00
<pkgs.mk
bootable:V:
stuff/create-bootable "$root" morpheus-$arch-$version.img