Blame view

Makefile 1.35 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
  BOOTSTRAPNAME=bootstrap-$(BOOTSTRAPVER)-dist
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
7
  
852ae003   Geoffrey PREUD'HOMME   Konami code
8
  all: redirs $(BOOTSTRAPNEEDED) js/jquery.min.js	js/konami.js $(addprefix fonts/,$(FONTS))
d6895efe   Geoffrey PREUD'HOMME   Fix base Makefile
9
  	cd img; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
10
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
11
  # Redirs
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
12
  %.php: pages/%.php
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
13
  	echo "<?php require('index.php') ?>" > $@
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
14
15
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
16
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
17
18
19
  js/jquery.min.js:
  	wget http://code.jquery.com/jquery-$(JQUERYVER).min.js -O $@
  
852ae003   Geoffrey PREUD'HOMME   Konami code
20
21
22
23
  js/konami.js:
  	wget https://gist.githubusercontent.com/scottstanfield/6450745/raw/ca320e86478f3026e138ab45f36820745bc2e6c0/cornify.js -O $@
  	a=`sed 's/65,65/66,65/g' $@`; echo "$$a" > $@
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
24
  $(BOOTSTRAPNEEDED):
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
25
  	wget https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAPVER)/$(BOOTSTRAPNAME).zip -O $(BOOTSTRAPNAME).zip
2b08a86d   Geoffrey PREUD'HOMME   Fix bootstrap making
26
  	unzip $(BOOTSTRAPNAME).zip $(addprefix $(BOOTSTRAPNAME)/,$(BOOTSTRAPNEEDED))
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
27
28
29
  	cp -rf $(BOOTSTRAPNAME)/* .
  	rm -rf $(BOOTSTRAPNAME)*
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
30
31
32
33
34
35
36
37
38
39
40
  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
41
  clean:
0f325835   Geoffrey PREUD'HOMME   Make clean base
42
  	cd img; make clean
71f6177a   Geoffrey PREUD'HOMME   Removed hacky rew...
43
  	rm -rf $(BOOTSTRAPNEEDED) $(addprefix fonts/,$(FONTS)) js/jquery.min.js