syndicate-js/Makefile

36 lines
802 B
Makefile

__ignored__ := $(shell ./setup.sh)
LERNA=./node_modules/.bin/lerna
bootstrap: node_modules/lerna
node_modules/lerna:
yarn install
$(MAKE) clean
+$(MAKE) -j$$(nproc) all
clean.local:
clean: clean.local
$(LERNA) exec 'yarn clean || true'
veryclean: clean.local
$(LERNA) exec 'yarn veryclean || true'
rm -rf node_modules
all:
$(LERNA) exec yarn prepare
watch:
inotifytest make -j$$(nproc) all
pull-protocols:
git subtree pull -P packages/core/protocols \
-m 'Merge latest changes from the syndicate-protocols repository' \
git@git.syndicate-lang.org:syndicate-lang/syndicate-protocols \
main
fixcopyright:
fixcopyright.rkt --preset-typescript --file-pattern 'packages/**.ts' GPL-3.0-or-later
fixcopyright.rkt --preset-javascript --file-pattern 'packages/**.js' GPL-3.0-or-later