2020-2021/Makefile
Bertrand Benjamin ef14b2725a
All checks were successful
continuous-integration/drone/push Build is passing
Feat: ok pour la syncro avec la clé usb
2020-09-07 10:25:14 +02:00

34 lines
1.0 KiB
Makefile

CLEUSB=Cle8G
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*"
VENV="enseignements"
install:
git config core.hooksPath ./tools/git/hooks/
python -m venv ~/.venv/$(VENV)
( \
. ~/.venv/$(VENV)/bin/activate;\
pip install -r requirements.txt;\
)
update:
( \
. ~/.venv/$(VENV)/bin/activate;\
pip install --ignore-installed -r requirements.txt
)
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 -av --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements
rsync -av $(COMMON_EXCLUDE) ../Divers/ /run/media/lafrite/$(CLEUSB)/Divers
rsync -av $(COMMON_EXCLUDE) ../Notes/ /run/media/lafrite/$(CLEUSB)/Notes
rsync -av $(COMMON_EXCLUDE) ../Productions\ Eleves/ /run/media/lafrite/$(CLEUSB)/Productions
# rsync -av /run/media/lafrite/$(CLEUSB)/Productions/$(YEAR) ../../Production\ eleves/
.PHONY: