-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 1.02 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
42
43
44
45
46
47
48
49
GENERATOR := ./generate.py
GENCONF := ./conf.ini
OUTPUT := output
SCRIPT := $(OUTPUT)/style.js
STYLESHEET := $(OUTPUT)/stylesheet.css
FONTS := $(OUTPUT)/fonts
GL_USER ?= $(USER)
TARGETSERVER := $(GL_USER)@gl.umbc.edu
TARGETPATH := /afs/umbc.edu/public/www/lug/
all: generate $(SCRIPT) $(STYLESHEET) $(FONTS)
tar: lug.umbc.edu.tar
.PHONY: all tar get-deps generate deploy clean reallyclean
get-deps:
bower install mui
bower install fontawesome
$(OUTPUT):
mkdir -p $(OUTPUT)
lug.umbc.edu.tar: all
tar -cf $@ -C $(OUTPUT) .
deploy: lug.umbc.edu.tar
scp lug.umbc.edu.tar $(TARGETSERVER):$(TARGETPATH)
ssh $(TARGETSERVER) "tar -C $(TARGETPATH) -xf $(TARGETPATH)/$^"
generate: $(GENCONF) $(wildcard pages/*) $(OUTPUT)
$(GENERATOR) $(GENCONF)
$(FONTS): bower_components/fontawesome/fonts
cp -r bower_components/fontawesome/fonts $(FONTS)
$(SCRIPT): style.js
cp -f style.js $(SCRIPT)
$(STYLESHEET): stylesheets/main.scss
scss $^ > $(STYLESHEET)
clean:
rm -rf $(OUTPUT) .sass-cache
reallyclean: clean
rm -rf bower_components