2020-2021/Makefile

34 lines
1.1 KiB
Makefile
Raw Normal View History

2020-08-07 16:04:18 +00:00
CLEUSB=Cle8G
2020-10-07 07:12:24 +00:00
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*" --exclude "**/*.ppm"
2020-08-07 16:04:18 +00:00
2020-08-20 07:54:29 +00:00
VENV="enseignements"
2020-08-07 16:04:18 +00:00
install:
git config core.hooksPath ./tools/git/hooks/
2020-08-20 07:54:29 +00:00
python -m venv ~/.venv/$(VENV)
( \
2020-08-20 07:54:29 +00:00
. ~/.venv/$(VENV)/bin/activate;\
pip install -r requirements.txt;\
)
2020-08-07 16:04:18 +00:00
2020-08-20 07:54:29 +00:00
update:
( \
. ~/.venv/$(VENV)/bin/activate;\
pip install --ignore-installed -r requirements.txt
)
2020-08-07 16:04:18 +00:00
clean:
git clean -idx -e venv/ -e video/
rsync_cleUSB: clean
#rsync --progress --modify-window=1 --update --recursive --times --del ./ $(GIT_EXCLUDE) /run/media/lafrite/K1
rsync -rtv -u --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements
rsync -rtv -u $(COMMON_EXCLUDE) ../Divers/ /run/media/lafrite/$(CLEUSB)/Divers
rsync -rtv -u $(COMMON_EXCLUDE) ../Notes/ /run/media/lafrite/$(CLEUSB)/Notes
rsync -rtv -u $(COMMON_EXCLUDE) ../Productions\ Eleves/ /run/media/lafrite/$(CLEUSB)/Productions
2020-08-07 16:04:18 +00:00
# rsync -av /run/media/lafrite/$(CLEUSB)/Productions/$(YEAR) ../../Production\ eleves/
.PHONY: