Skip to content

Commit

Permalink
update submodules when building
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Dec 12, 2023
1 parent 600c576 commit 5d4aa30
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TS_FILES := $(shell find ./ -name \*.ts)
# delete the target of a rule if it has changed and its recipe exits with a nonzero exit status
.DELETE_ON_ERROR:

all: verify
all: submodule-update verify

verify: $(PKG_ID).s9pk
@start-sdk verify s9pk $(PKG_ID).s9pk
Expand All @@ -28,6 +28,14 @@ clean-manifest:
@sed -i '' '/^[[:blank:]]*#/d' manifest.yaml
@echo; echo "Comments successfully removed from manifest.yaml file."; echo

submodule-update:
@if [ -z "$(shell git submodule status | egrep -v '^ '|awk '{print $2}')" ]; then \
echo "\nAll submodules ready for build.\n"; \
else \
echo "\nPulling submodules...\n"; \
git submodule update --init --progress; \
fi

scripts/embassy.js: $(TS_FILES)
deno bundle scripts/embassy.ts scripts/embassy.js

Expand Down

0 comments on commit 5d4aa30

Please sign in to comment.