Commit 40725eaf2a3f0a947fdbc0db881b953dc02fdf39

Authored by Louis-Claude Canon
1 parent 67cec455c8
Exists in master

New deployment rule

Showing 1 changed file with 3 additions and 2 deletions Inline Diff

FORMATION=besançon2_CMI besançon2 besançon bordeaux dijon_EI dijon_MI grenoble lyon nancy rennes 1 1 FORMATION=besançon2_CMI besançon2 besançon bordeaux dijon_EI dijon_MI grenoble lyon nancy rennes
DATA=$(addsuffix .csv, $(addprefix data/, ${FORMATION})) 2 2 DATA=$(addsuffix .csv, $(addprefix data/, ${FORMATION}))
CAT=$(addsuffix .cat, ${DATA}) 3 3 CAT=$(addsuffix .cat, ${DATA})
4 4
all: www/programme.html 5 5 all: www/programme.html
%.cat: % 6 6 %.cat: %
./parse.sh $< 7 7 ./parse.sh $<
www/programme.html: www/programme.template ${CAT} 8 8 www/programme.html: www/programme.template ${CAT}
./build.sh 9 9 ./build.sh
deploy: 10 10 deploy: all
scp -r www/* lccanon@lifc-home.univ-fcomte.fr:public_html/ 11 11 rsync --recursive --copy-links --times --perms --progress www/* \
12 lccanon@lifc-home.univ-fcomte.fr:public_html/
clean: 12 13 clean:
-rm ${CAT} data/*.theme data/csv.cat data/csv.theme data/theme.txt www/programme.html 2> /dev/null 13 14 -rm ${CAT} data/*.theme data/csv.cat data/csv.theme data/theme.txt www/programme.html 2> /dev/null
14 15