Skip to content

Commit

Permalink
add shellcheck to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax committed Nov 2, 2024
1 parent 4bac00e commit ec41708
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ scripts/enable_tcp_debugging.sh \
scripts/disable_tcp_debugging.sh \
scripts/start_global_shell.sh \

pixel-backup-gang-$(PBG_VERSION).tar.gz: $(ALL_SCRIPTS)
tar --owner=0 --group=0 -czvf $@ --transform='s,^scripts/,pixel-backup-gang/,' $^

.PHONY: release
release: pixel-backup-gang-$(PBG_VERSION).tar.gz

Expand All @@ -35,9 +38,10 @@ mobile-install: pixel-backup-gang-$(PBG_VERSION).tar.gz
$(HOST_ADB_COMMAND) shell su --command 'chmod +x $(DEVICE_INSTALL_DIRECTORY)/pixel-backup-gang/*.sh'
# done, installed scripts to $(DEVICE_INSTALL_DIRECTORY)/pixel-backup-gang

.PHONY: shellcheck
shellcheck: $(ALL_SCRIPTS)
shellcheck --shell=sh --severity=style --check-sourced $^

.PHONY: clean
clean:
rm -f pixel-backup-gang-*.tar.gz

pixel-backup-gang-$(PBG_VERSION).tar.gz: $(ALL_SCRIPTS)
tar --owner=0 --group=0 -czvf $@ --transform='s,^scripts/,pixel-backup-gang/,' $^

0 comments on commit ec41708

Please sign in to comment.