-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
22 lines (19 loc) · 875 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include ./src/ref
include ./src/Makefile
include ./ref.local
include ~/bin/generic.mk
.PHONY: pkg
DD:=$(shell date +%Y-%M-%d_%H%M%S)
REMOTEFTPHOST=-u metar,metar localhost
clean:
TESTDATA=data/noaa/metar/`date +%Y-%m.tar.gz` && test ! -f $$TESTDATA || rm $$TESTDATA
test-getsample:
curl -s 'http://weather.aero/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&stationString=KSEA,UNNT&hoursBeforeNow=2' | xpath -q -e '//raw_text/text()'
publish-etl: export REMOTEHOME = metar@localhost:/home/metar/
publish-etl: export PKG = $(shell echo `pwd`/delivery/`ls -1t delivery | head -1`)
publish-etl: pkg
$(MAKE) --directory env/production -e
publish-crawler: export PKG = $(shell echo `pwd`/delivery/`ls -1t delivery | head -1`)
publish-crawler: export REMOTEFTPHOST := $(REMOTEFTPHOST)
publish-crawler: pkg
$(MAKE) --directory env/crawler -e