X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=9ef09b02fd979758a757253ea6a3019d1821684e;hb=951030b70f91fd2a56a5e9ba1eaecec679360cb6;hp=b12a8ce845142b15ae82724731eea5b4590b3c98;hpb=605f785efcb4b5d9361e00802c54ba6004f3c6ee;p=banana.git diff --git a/Makefile b/Makefile index b12a8ce..9ef09b0 100644 --- 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 .svn # global targets @@ -16,16 +16,18 @@ build: pkg-build dist: clean pkg-dist clean: - rm -rf locale banana/include/banana.inc.php + rm -rf locale banana/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)