Blame view

Makefile 654 Bytes
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
1
2
  BOOTSTRAPVER=3.3.2
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
3
  REDIRS=$(shell cd pages; echo *.php)
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
4
  BOOTSTRAPNAME=bootstrap-$(BOOTSTRAPVER)-dist
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
5
  
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
6
  all: redirs bootstrap
d6895efe   Geoffrey PREUD'HOMME   Fix base Makefile
7
  	cd img; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
8
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
9
  %.php: pages/%.php
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
10
  	echo "<?php require('index.php') ?>" > $@
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
11
12
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
13
  
841326c6   Geoffrey PREUD'HOMME   Included bootstra...
14
15
16
17
18
19
20
21
22
23
  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*
  
  clean: bootstrapClean
0f325835   Geoffrey PREUD'HOMME   Make clean base
24
  	cd img; make clean
63ec90dc   Geoffrey PREUD'HOMME   Correct redir cle...
25
  	rm -rf $(REDIRS)