1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-25 07:08:33 +00:00
morpheus/mkfile

32 lines
582 B
Plaintext
Raw Normal View History

2014-02-27 12:41:37 +00:00
<config.mk
2014-03-09 12:36:29 +00:00
allpkgs = `{ls -d pkgs/*}
2014-02-27 12:41:37 +00:00
pkgs = ${allpkgs:pkgs/%=%}
help:VQ:
2014-03-01 11:40:53 +00:00
printf 'Usage: mk pkg...\n'
2014-03-01 11:32:24 +00:00
printf '\nTo build all the targets in pkgs/, run `mk world´\n'
2014-02-27 12:41:37 +00:00
all world:VQ: $pkgs
clean:V:
2014-03-01 00:07:51 +00:00
rm -f .cache/* pkgs.mk
2014-02-27 12:41:37 +00:00
clean-all clean-world:V: clean
2014-03-01 14:43:39 +00:00
rm -rf ${root} src
2014-02-28 21:19:02 +00:00
fetchpkgs = ${pkgs:%=%-fetch}
fetch-all fetch-world:VQ: ${fetchpkgs}
2014-02-28 12:36:16 +00:00
`{ mkdir -p src }
2014-03-01 00:07:51 +00:00
`{ mkdir -p .cache }
# generate a pkgs.mk file with the targets for all packages in pkgs/
`{ stuff/generate-pkgs.sh pkgs > pkgs.mk }
2014-02-27 12:41:37 +00:00
<pkgs.mk
bootable:V:
stuff/create-bootable "$root" morpheus-$arch-$version.img