From: Jason Woofenden Date: Tue, 20 Sep 2011 04:55:59 +0000 (-0400) Subject: only use lesscss when local X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=commitdiff_plain;h=23e93d1d63fc861743101a07f3855afb886c0f93 only use lesscss when local added Makefile to generate css css file is tracked by git to easy publishing with "git push" --- diff --git a/.htaccess b/.htaccess index e2570ae..69c8641 100644 --- a/.htaccess +++ b/.htaccess @@ -7,6 +7,7 @@ DirectorySlash Off AddDefaultCharset UTF-8 RewriteEngine on RewriteRule ^[^/.]*$ /run.php [L] +RewriteRule ^style_[0-9]*.css$ /style.css [L] RewriteRule ^style_[0-9]*.less$ /style.less [L] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9eeb0f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ + +all: style.css tags + +tags: *.php code/*.php code/wfpl/*.php + exuberant-ctags *.php code/*.php code/wfpl/*.php + +style.css: style.less + lessc $< $@ diff --git a/admin_pages.html b/admin_pages.html index 2181eef..9f769b3 100644 --- a/admin_pages.html +++ b/admin_pages.html @@ -9,7 +9,7 @@ ~}~ ~$running_locally unset {~~}~ - - - - +