debian packaging
[banana.git] / Makefile
index af7b7ed..41c71f2 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
 
@@ -27,6 +27,7 @@ clean:
 
 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
@@ -35,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)