-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
42 lines (33 loc) · 1.07 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
################################################################
## Synchronize web site on the server
################################################################
## Variables
MAKEFILE=makefile
MAKE=make -s -f ${MAKEFILE}
################################################################
## List of targets
usage:
@echo "usage: make [-OPT='options'] target"
@echo "implemented targets"
@perl -ne 'if (/^([a-z]\S+):/){ print "\t$$1\n"; }' ${MAKEFILE}
################################################################
## Clean temporary files created by emacs
clean:
find . -name '*~' -exec rm {} \;
find . -name '.#*' -exec rm {} \;
find . -name '.DS_Store' -exec rm {} \;
################################################################
## Publish on the web site
TO_SYNC=*
publish: clean
git push
################################################################
## Browse the Web site
#BROWSER=firefox
LOCAL=index.html
local:
open ${LOCAL}
#WEB_URL=http://pedagogix-tagc.univ-mrs.fr/courses/SBBCU16L_cisreg
WEB_URL=http://rsa-tools.github.io/RSAT_20y
web:
open ${WEB_URL}