Fix quotes conversion to html.
[banana.git] / Makefile
index b12a8ce..f43994d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,9 @@ PKG_DIST = banana-$(VERSION)
 
 PKG_FILES = AUTHORS Changelog COPYING README Makefile TODO
 
-PKG_DIRS = banana po
+PKG_DIRS = banana po css examples img
 
-VCS_FILTER = ! -name .arch-ids ! -name CVS
+VCS_FILTER = ! -name .arch-ids ! -name .arch-inventory
 
 # global targets
 
@@ -17,15 +17,17 @@ dist: clean pkg-dist
 
 clean:
        rm -rf locale banana/include/banana.inc.php
+       make -C po clean
 
 %: %.in Makefile
-       sed -e 's,@VERSION@,$(VERSION),g' $< > $@
+       sed -e 's,@VERSION@,$(VERSION) The Bearded Release,g' $< > $@
 
 
 # banana package targets
 
 pkg-build: banana/banana.inc.php
        make -C po
+       make -C po clean
 
 pkg-dist: pkg-build
        rm -rf $(PKG_DIST) $(PKG_DIST).tar.gz
@@ -34,7 +36,7 @@ pkg-dist: pkg-build
        for dir in `find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
        do \
           mkdir -p $(PKG_DIST)/$$dir; \
-         find $$dir -type f -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \
+         find $$dir -type f $(VCS_FILTER) -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \
        done
        tar czf $(PKG_DIST).tar.gz $(PKG_DIST)
        rm -rf $(PKG_DIST)