pWiki/Makefile
Alex A. Naanou 7ce3e6f8bc working on browser...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2022-08-04 14:29:25 +03:00

45 lines
729 B
Makefile
Executable File

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
POUCH_DB := \
$(wildcard node_modules/pouchdb/dist/*)
ext-lib/pouchdb.js: node_modules $(POUCH_DB)
cp $(POUCH_DB) ext-lib/
bootstrap.js: scripts/bootstrap.js $(BOOTSTRAP_FILES)
node $<
.PHONY: bootstrap
bootstrap: bootstrap.js
node_modules:
npm install
dev: node_modules ext-lib/pouchdb.js $(LOCAL_MODULES) bootstrap
cp $(LOCAL_MODULES) lib/
clean:
rm -f bootstrap.js