From 534cf5d632f56131949764c52aee156661e65ffc Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 20 Sep 2023 16:38:44 +0300 Subject: [PATCH] moved makefile... Signed-off-by: Alex A. Naanou --- v2/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 v2/Makefile diff --git a/v2/Makefile b/v2/Makefile new file mode 100755 index 0000000..1d8f71c --- /dev/null +++ b/v2/Makefile @@ -0,0 +1,52 @@ + + + +BOOTSTRAP_FILES := \ + $(wildcard bootstrap/*) \ + $(wildcard bootstrap/*/*) \ + README.md + +LOCAL_MODULES := \ + node_modules/ig-doc/doc.js \ + node_modules/ig-stoppable/stoppable.js \ + node_modules/ig-object/object.js \ + node_modules/ig-actions/actions.js \ + node_modules/ig-features/features.js + +EXT_MODULES := \ + $(wildcard node_modules/pouchdb/dist/*) \ + $(wildcard node_modules/jszip/dist/*) \ + $(wildcard node_modules/idb-keyval/dist/*.js) \ + $(wildcard node_modules/showdown/dist/*) + +POUCH_DB := \ + $(wildcard node_modules/pouchdb/dist/*) + + + +lib/types: node_modules + mkdir -p $@ + cp node_modules/ig-types/*js $@ + + +bootstrap.js: scripts/bootstrap.js $(BOOTSTRAP_FILES) + node $< + + +.PHONY: bootstrap +bootstrap: bootstrap.js + + +node_modules: + npm install + + +dev: node_modules lib/types $(EXT_MODULES) $(LOCAL_MODULES) bootstrap + cp $(LOCAL_MODULES) lib/ + cp $(EXT_MODULES) ext-lib/ + + +clean: + rm -f bootstrap.js + +