Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add Makefile

  • Loading branch information...
commit 4186e91a57ab839a184ede8290a7eab359ec858f 1 parent f639df3
@furtherLee authored
View
3  .gitignore
@@ -1,3 +1,4 @@
*.htaccess
-app/views/pages/*
+app/config.php
+app/views/pages/*.html
View
15 app/Makefile
@@ -1,2 +1,13 @@
-gensite:
-
+PAGE_DIR:=pages/
+HTML_DIR:=view/pages/
+GENERATOR:=rdiscount
+
+PAGES:=$(wildcard $(PAGE_DIR)*.md)
+HTMLS:=$(subst md,html,$(subst $(PAGE_DIR),$(HTML_DIR),$(PAGES)))
+
+.PHONY: pages *.html
+
+%.html:
+ rdiscount $(subst $(HTML_DIR),$(PAGE_DIR),$(subst html,md,$@)) > $@
+
+pages: $(HTMLS)
View
6 app/config-debug.php
@@ -0,0 +1,6 @@
+<?php
+
+define('HOME_BASE', 'http://localhost/further/');
+define('JS_BASE', HOME_BASE.'assets/js/');
+define('CSS_BASE', HOME_BASE.'assets/css/');
+define('IMG_BASE', HOME_BASE.'assets/img/');
View
0  app/view/pages/tools.php → app/config-sae.php
File renamed without changes
View
0  app/config.php
No changes.
View
1  app/config.php
View
1  app/pages/about.md
@@ -0,0 +1 @@
+
View
1  app/pages/books.md
@@ -0,0 +1 @@
+
View
1  app/pages/projects.md
@@ -0,0 +1 @@
+
View
1  app/pages/tools.md
@@ -0,0 +1 @@
+
View
9 app/show.php
@@ -0,0 +1,9 @@
+<?php
+
+
+$page = $_GET['page'];
+
+if(!isset($page))
+ $page = "about";
+
+
View
0  app/view/pages/about.php
No changes.
View
0  app/view/pages/books.php
No changes.
View
0  app/view/pages/projects.php
No changes.
View
4 index.php
@@ -4,5 +4,5 @@
* Author: Li Shijian
* Last Modification: 2012.9.4
*/
-require("app/config.php");
-require("app/show.php");
+require_once("app/config.php");
+require_once("app/show.php");
Please sign in to comment.
Something went wrong with that request. Please try again.