Blame view

Makefile 1.2 KB
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
1
  BOOTSTRAPVER=3.3.2
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
2
  JQUERYVER=2.1.1
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
3
4
5
  FONTS=robotech-gp.ttf robotaur.ttf
  
  BOOTSTRAPNEEDED=js/bootstrap.min.js css/bootstrap.min.css fonts/glyphicons-halflings-regular.*
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
6
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
7
  REDIRS=$(shell cd pages; echo *.php)
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
8
  BOOTSTRAPNAME=bootstrap-$(BOOTSTRAPVER)-dist
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
9
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
10
  all: redirs $(BOOTSTRAPNEEDED) js/jquery.min.js	$(addprefix fonts/,$(FONTS))
d6895efe   Geoffrey PREUD'HOMME   Fix base Makefile
11
  	cd img; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
12
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
13
  # Redirs
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
14
  %.php: pages/%.php
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
15
  	echo "<?php require('index.php') ?>" > $@
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
16
17
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
18
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
19
20
21
  js/jquery.min.js:
  	wget http://code.jquery.com/jquery-$(JQUERYVER).min.js -O $@
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
22
  $(BOOTSTRAPNEEDED):
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
23
  	wget https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAPVER)/$(BOOTSTRAPNAME).zip -O $(BOOTSTRAPNAME).zip
2b08a86d   Geoffrey PREUD'HOMME   Fix bootstrap making
24
  	unzip $(BOOTSTRAPNAME).zip $(addprefix $(BOOTSTRAPNAME)/,$(BOOTSTRAPNEEDED))
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
25
26
27
  	cp -rf $(BOOTSTRAPNAME)/* .
  	rm -rf $(BOOTSTRAPNAME)*
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
28
29
30
31
32
33
34
35
36
37
38
  fonts/robotech-gp.ttf:
  	wget http://dl.dafont.com/dl/?f=robotech_gp -O robotech_gp.zip
  	unzip robotech_gp.zip ROBOTECH\ GP.ttf
  	mv ROBOTECH\ GP.ttf $@
  	rm -rf robotech_gp.zip ROBOTECH\ GP.ttf 
  
  fonts/robotaur.ttf:
  	wget http://dl.dafont.com/dl/?f=robotaur -O robotaur.zip
  	unzip robotaur robotaur.ttf -d fonts
  	rm -rf robotaur.zip
  
2b08a86d   Geoffrey PREUD'HOMME   Fix bootstrap making
39
  clean:
0f325835   Geoffrey PREUD'HOMME   Make clean base
40
  	cd img; make clean
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
41
  	rm -rf $(REDIRS) $(BOOTSTRAPNEEDED) $(addprefix fonts/,$(FONTS)) js/jquery.min.js