forked from haskell/haskell-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 1.03 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
VERSION = 2010
default:
cd tools && make
cd report && make
clean:
cd report && make clean
cd tools && make clean
release:
cd tools && make
cd report && make
mkdir haskell$(VERSION) || true
cp report/ht/*.html report/ht/*.png report/ht/*.css haskell$(VERSION)
tar cvzf haskell$(VERSION)-html.tar.gz haskell$(VERSION)
# If you have an account on www.haskell.org, the following rules will upload
# the finished report to the correct places.
UPLOAD_HOST = www.haskell.org
UPLOAD_HTML_DIR = /home/haskell/onlinereport/haskell$(VERSION)
UPLOAD_DEFN_DIR = /home/haskell/definition
upload:
ssh $(UPLOAD_HOST) "mkdir $(UPLOAD_HTML_DIR) || true"
ssh $(UPLOAD_HOST) "mkdir $(UPLOAD_DEFN_DIR) || true"
scp report/haskell.pdf $(UPLOAD_HOST):$(UPLOAD_DEFN_DIR)/haskell$(VERSION).pdf
scp haskell$(VERSION)-html.tar.gz $(UPLOAD_HOST):$(UPLOAD_DEFN_DIR)
ssh $(UPLOAD_HOST) "cd $(UPLOAD_HTML_DIR); tar xvzf $(UPLOAD_DEFN_DIR)/haskell$(VERSION)-html.tar.gz; mv haskell$(VERSION)/* .; rmdir haskell$(VERSION); rm -f index.html; ln -s haskell.html index.html"