Blame view

Makefile 1.12 KB
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
1
  BOOTSTRAPVER=3.3.2
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
2
  JQUERYVER=2.1.1
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
3
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
4
  REDIRS=$(shell cd pages; echo *.php)
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
5
  BOOTSTRAPNAME=bootstrap-$(BOOTSTRAPVER)-dist
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
6
  
0067de2a   Geoffrey PREUD'HOMME   Forgot to auto dl...
7
  all: redirs $(BOOTSTRAPNEEDED) js/jquery.min.js
d6895efe   Geoffrey PREUD'HOMME   Fix base Makefile
8
  	cd img; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
9
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
10
  %.php: pages/%.php
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
11
  	echo "<?php require('index.php') ?>" > $@
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
12
13
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
14
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
15
16
17
  js/jquery.min.js:
  	wget http://code.jquery.com/jquery-$(JQUERYVER).min.js -O $@
  
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
18
19
20
21
22
23
24
25
26
  bootstrap:
  	wget https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAPVER)/$(BOOTSTRAPNAME).zip -O $(BOOTSTRAPNAME).zip
  	unzip $(BOOTSTRAPNAME).zip $(BOOTSTRAPNAME)/fonts/* $(BOOTSTRAPNAME)/css/bootstrap.min.css $(BOOTSTRAPNAME)/js/bootstrap.min.js
  	cp -rf $(BOOTSTRAPNAME)/* .
  	rm -rf $(BOOTSTRAPNAME)*
  
  bootstrapClean:
  	rm -rf fonts/glyphicons* */bootstrap*
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
27
28
29
30
31
32
33
34
35
36
37
  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
  
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
38
  clean: bootstrapClean
0f325835   Geoffrey PREUD'HOMME   Make clean base
39
  	cd img; make clean
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
40
  	rm -rf $(REDIRS) js/jquery.min.js fonts/robot*.ttf