zip
This commit is contained in:
parent
239f3681f0
commit
a85f588037
1 changed files with 21 additions and 0 deletions
21
zip.mk
Normal file
21
zip.mk
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
ZIP = zip -r
|
||||||
|
RM = rm
|
||||||
|
|
||||||
|
IGNORE = "*/build/*" "*/.gradle/*" "*/.idea/*" "*/local.properties" "*.pdf"
|
||||||
|
|
||||||
|
all: main
|
||||||
|
|
||||||
|
main: help
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "make archive"
|
||||||
|
@echo " -> Compresse tout les TP"
|
||||||
|
@echo ""
|
||||||
|
@echo "make archive10"
|
||||||
|
@echo " -> Compresse le TP 10"
|
||||||
|
|
||||||
|
archive%:
|
||||||
|
$(ZIP) "TP$(*).zip" "TP$(*)" -x $(IGNORE)
|
||||||
|
|
||||||
|
archive:
|
||||||
|
$(ZIP) "TPs.zip" TP* -x $(IGNORE)
|
Loading…
Reference in a new issue