Skip to content
Snippets Groups Projects
Commit 4c20d2dc authored by marcoemi.poleggi's avatar marcoemi.poleggi
Browse files

Decrytpted file touched

parent d56e6432
Branches
Tags
No related merge requests found
.ONESHELL:
sources := app/src/main/java/com/example/iot_hes/iotlab/MainActivity.java
.PHONY: help
all: help
# ensure symlinks are local to the source directory
_slink:
dname=$(dir $(slink))
lname=$(notdir $(slink))
pushd $$dname >/dev/null
ln -sf $$lname.$(suffix) $$lname
popd >/dev/null
incomplete: $(sources)
$(MAKE) suffix=incomplete _slink slink=$<
labo: incomplete
unlock:
git-crypt unlock
complete: $(sources)
$(MAKE) suffix=complete _slink slink=$<
solution: complete
clean:
./gradlew cleanBuildCache clean
rm -rf .gradle/ .idea/ app/build/ build/
reset: clean incomplete
# No-op
# labo build
lbuild: incomplete clean
./gradlew build
# solution build
sbuild: complete clean
build: complete clean
./gradlew build
linstall: lbuild clean
./gradlew installDebug
sinstall: sbuild
install: build
./gradlew installDebug
uninstall:
......@@ -59,18 +27,10 @@ Usage:
Targets:
clean remove build artifacts and specious files & dirs
complete prepare the source code for the 'solution' build
help guess what ;-)
incomplete prepare the source code for the 'labo' build
labo alias => 'incomplete'
lbuild build 'labo' (incomplete app)
linstall build & push 'labo' to device
reset alias => 'incomplete'
sbuild build 'solution' (complete app)
sinstall build & push 'solution' to device
solution alias => 'complete'
uninstall remove whatever app build from device
unlock decrypt sensitive files
build build the app
install build & push the app to device
uninstall remove the app from device
endef
......
......@@ -124,19 +124,3 @@ This section is for code maintainers. Students are however encouraged to read :-
Most tasks are available via the included `Makefile`. See:
$ make help
Keep in mind that a `pre-commit` hook is installed which does some checks.
Source code for the solution build and other sensitive files are encrypted. If
you have just cloned this repo and need to work on sensitive stuff, **the
first thing to do** is to run:
$ make unlock
Unlocked content will be anyway encrypted on subsequent push operations. It
won't work if the working dir is dirty!
It is good practice to have this repo labo-ready, thus before push new stuff,
you should always call:
$ make reset
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment