Improve makefile

This commit is contained in:
yamadapc 2016-06-22 17:34:09 -03:00
parent 0ac4dd4c69
commit 9153d50eac

View File

@ -6,34 +6,59 @@ all: FORCE
make failure
make pandoc
make run-README
make run-hello-world-example
make run-hello-variable-name
make run-fibonacci
make run-failure
make run-pandoc
README: FORCE
cd ./README && stack build
cd ./README && npm install
run-README: FORCE
@echo "README ---------------------------------------------------------------"
cd ./README && node ./js/index.js
hello-world-example: FORCE
cd ./examples/hello-world && stack build
cd ./examples/hello-world && npm install
run-hello-world-example: FORCE
@echo "hello-world ----------------------------------------------------------"
cd ./examples/hello-world && node ./index.js
hello-variable-name: FORCE
cd ./examples/hello-variable-name && stack build
cd ./examples/hello-variable-name && npm install
run-hello-variable-name: FORCE
@echo "hello-variable-name --------------------------------------------------"
cd ./examples/hello-variable-name && node ./index.js
fibonacci: FORCE
cd ./examples/fibonacci && stack build
cd ./examples/fibonacci && npm install
run-fibonacci: FORCE
@echo "fibonacci ------------------------------------------------------------"
cd ./examples/fibonacci && node ./index.js
failure: FORCE
cd ./examples/failure && stack build
cd ./examples/failure && npm install
run-failure: FORCE
@echo "failure --------------------------------------------------------------"
cd ./examples/failure && node ./index.js
pandoc: FORCE
cd ./examples/pandoc && stack build
cd ./examples/pandoc && npm install
run-pandoc: FORCE
@echo "pandoc ---------------------------------------------------------------"
cd ./examples/pandoc && node ./node-main.js
FORCE: