Blame view

Makefile 1.38 KB
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
1
  BOOTSTRAPVER=3.3.2
368becea   Geoffrey PREUD'HOMME   IE compatibility
2
  JQUERYVER=1.11.2
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
3686bf94   Geoffrey PREUD'HOMME   Main makefile lin...
10
  	cd vid; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
11
  
c37c623d   Geoffrey PREUD'HOMME   Better Makefile
12
  # Redirs
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
13
  %.php: pages/%.php
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
14
  	echo "<?php require('index.php') ?>" > $@
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
15
16
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
17
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
18
19
20
  js/jquery.min.js:
  	wget http://code.jquery.com/jquery-$(JQUERYVER).min.js -O $@
  
852ae003   Geoffrey PREUD'HOMME   Konami code
21
22
23
24
  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
25
  $(BOOTSTRAPNEEDED):
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
26
  	wget https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAPVER)/$(BOOTSTRAPNAME).zip -O $(BOOTSTRAPNAME).zip
2b08a86d   Geoffrey PREUD'HOMME   Fix bootstrap making
27
  	unzip $(BOOTSTRAPNAME).zip $(addprefix $(BOOTSTRAPNAME)/,$(BOOTSTRAPNEEDED))
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
28
29
30
  	cp -rf $(BOOTSTRAPNAME)/* .
  	rm -rf $(BOOTSTRAPNAME)*
  
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
31
32
33
34
  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 $@
3686bf94   Geoffrey PREUD'HOMME   Main makefile lin...
35
  	rm -rf robotech_gp.zip ROBOTECH\ GP.ttf
5b6817df   Geoffrey PREUD'HOMME   Included robot fo...
36
37
38
39
40
41
  
  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
42
  clean:
0f325835   Geoffrey PREUD'HOMME   Make clean base
43
  	cd img; make clean
3686bf94   Geoffrey PREUD'HOMME   Main makefile lin...
44
  	cd vid; make clean
71f6177a   Geoffrey PREUD'HOMME   Removed hacky rew...
45
  	rm -rf $(BOOTSTRAPNEEDED) $(addprefix fonts/,$(FONTS)) js/jquery.min.js