Project

General

Profile

1
selfDir_XlThrr := $(dir $(lastword $(MAKEFILE_LIST)))
2
root := $(selfDir_XlThrr)../../..
3
include $(root)/lib/common.Makefile
4

    
5

    
6
##### Vars/functions
7

    
8
##### General targets
9

    
10
all: _always download ;
11

    
12
##### Downloads
13

    
14
urlPrefix := http://apps.fs.fed.us/fiadb-downloads/
15

    
16
states := AS GU PW AL AK AZ AR CA CO CT DE DC FL GA HI ID IL IN IA KS KY LA ME\
17
MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA PR RI SC SD TN TX UT\
18
VT VI VA WA WV WI WY
19

    
20
download: _always $(states:%=%.zip) ;
21

    
22
%.zip:
23
	-wget -O $@ $(urlPrefix)$@
24
# ignore errors if wget not installed
(3-3/4)