index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2019-10-10 22:18:47.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2019-10-10 22:18:47.0 +00:00:00
commit
add3a08b247e60eafc17c80ea136dea3e16b244b [patch]
tree
542f4db4d19c2a0f50d3814e09ddc6f7e14402f8
parent
51803f3f81d22a06ad5ec29e805b057adceb8140
download
add3a08b247e60eafc17c80ea136dea3e16b244b.tar.gz

feat: add tasks info



Diff

 Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Makefile b/Makefile
index 083243d..b4f860c 100644
--- a/Makefile
+++ b/Makefile
@@ -23,12 +23,19 @@ watch:
	@cargo make --makefile Tasks.Dev.toml watch
.PHONY: watch

build:
	@cargo build --release --target $(PKG_TARGET)
.PHONY: build


#######################################
########### Utility tasks #############
#######################################

test:
	@sudo chown -R rust:rust ./
	@echo "Testing application..."
	@rustc --version
	@cargo test
.PHONY: test

@@ -49,6 +56,8 @@ define build_release =
	set -u

	sudo chown -R rust:rust ./
	echo "Compiling application..."
	rustc --version
	cargo build --release --target $(PKG_TARGET)
	echo "Release build completed!"
endef
@@ -88,6 +97,8 @@ prod.release:
	set -e
	set -u

	echo "Building a release..."

	$(build_release)
	$(build_release_shrink)
	$(build_release_files)