diff --git a/Alfons.moon b/Alfons.moon index 3bd9faf..782c408 100644 --- a/Alfons.moon +++ b/Alfons.moon @@ -1,13 +1,13 @@ -tasks: - bootstrap: => sh "moon bin/moonbuild.moon -jy" - bootstrapinstall: => sh "moon bin/moonbuild.moon install -jy" +require 'moonscript' +moonbuild = require 'moonbuild' +tasks: release: => error "no version provided" unless @v tasks.build! sh "rockbuild -m -t #{@v} upload" - build: => (require 'moonbuild') j: true - install: => (require 'moonbuild') 'install', j: true - clean: => (require 'moonbuild') 'clean' - mrproper: => (require 'moonbuild') 'mrproper' + build: => moonbuild j: true + install: => moonbuild 'install', j: true + clean: => moonbuild 'clean' + mrproper: => moonbuild 'mrproper' diff --git a/README.md b/README.md index 731f731..8d0fc79 100644 --- a/README.md +++ b/README.md @@ -27,5 +27,10 @@ You can build moonbuild with itself: `moon bin/moonbuild.moon -qjy`. This will leave the binary ready to be used as `out/moonbuild` (it will still depend on the library to be used). The binary and library can then be installed with `bin/moonbuild install`. +You can combine these steps with `moon bin/moonbuild.moon -qjy install` which will build and install moonbuild. + +### With `Alfons` +Alfons can use the devel version of moonbuild directly from its sources, so `alfons build` and `alfons install` will work directly. + ## Docs TODO