Fixes vim mode line.
[banana.git] / Makefile
index 486eb35..ac99fff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,21 @@ PKG_DIST = banana-$(VERSION)
 
 PKG_FILES = AUTHORS Changelog COPYING README Makefile TODO
 
-PKG_DIRS = banana po css examples img
+PKG_DIRS = banana po css examples img javascript
 
 VCS_FILTER = ! -name .svn
 
 # global targets
 
+all: build
+
+# build for development (prepare spool
+devel: spool spool/templates_c
+
+q:
+       @echo -e "Code statistics\n"
+       @sloccount $(filter-out spool/ po/ debian/, $(wildcard */)) 2> /dev/null | egrep '^[a-z]*:'
+
 build: pkg-build
 
 dist: clean pkg-dist
@@ -24,6 +33,10 @@ clean:
        -rm $@
        sed -e 's,@VERSION@,$(VERSION) The Bearded Release,g' $< > $@
 
+spool spool/templates_c:
+       mkdir -p $@
+       chmod o+w $@
+
 # banana package targets
 
 pkg-build: banana/banana.inc.php