From b4cfbe111bff2beb58bc6e376dfb8153582d0077 Mon Sep 17 00:00:00 2001 From: Masafumi Oyamada Date: Tue, 18 Aug 2020 23:57:26 +0000 Subject: [PATCH] Enhance makefile (make package and make release now work) --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1f0fd8c..5228588 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ SOURCES = $(shell find src/ -type f -name '*.js') +PACKAGE = package/.output/ikeysnail.box -package/.output/ikeysnail.box: $(SOURCES) +.PHONY: package +package: $(PACKAGE) + +$(PACKAGE): $(SOURCES) npx webpack-cli --mode=production cd package; npx jsbox-cli build -# release: package/.output/ikeysnail.box -# npx release-it +release: $(PACKAGE) + npx release-it