-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
28 lines (23 loc) · 1.01 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
# -* makefile -*-
# this makefile contains rules for the weewx.com website
WEEWX_COM:=weewx.com
WEEWX_HTMLDIR=/var/www/html
RSYNC_OPTS=--archive --recursive --verbose --chmod=ugo=rwX --no-perms --no-group --no-times
help:
@echo "options include:"
@echo " upload"
@echo " upload-highslide"
@echo " upload-register (OBSOLETE)"
@echo ""
@echo "for example:"
@echo "make upload"
upload:
rsync $(RSYNC_OPTS) code.html docs.html hardware.html hwcmp.html\
index.html keys.html keys-old.html showcase.html stations.html support.html\
favicon.ico\
cfg consumers css docs hardware images js keys logo screenshots statistics .nginxy\
$(USER)@$(WEEWX_COM):$(WEEWX_HTMLDIR)
upload-highslide:
rsync $(RSYNC_OPTS) highslide $(USER)@$(WEEWX_COM):$(WEEWX_HTMLDIR)
upload-register:
rsync $(RSYNC_OPTS) register/allkeys.txt register/archivelog.pl register/capture.pl register/common.pl register/mkstations.pl register/register.cgi register/savecounts.pl register/stations.html.in $(USER)@$(WEEWX_COM):$(WEEWX_HTMLDIR)/register