3 VERSION
=$(shell grep VERSION Changelog | head
-1 | sed
-e
"s/VERSION //;s/\t.*//")
4 PKG_DIST
= banana-
$(VERSION
)
6 PKG_FILES
= AUTHORS Changelog COPYING README Makefile TODO
8 PKG_DIRS
= banana po css examples img
10 VCS_FILTER
= ! -name .svn
16 # build for development (prepare spool
17 devel
: spool spool
/templates_c
24 rm -rf locale banana
/banana.inc.php
26 make
-C mbox-helper
clean
30 sed
-e
's,@VERSION@,$(VERSION) The Bearded Release,g' $< > $@
32 spool spool
/templates_c
:
36 # banana package targets
38 pkg-build
: banana
/banana.inc.php
44 rm -rf
$(PKG_DIST
) $(PKG_DIST
).
tar.gz
46 cp
-a
$(PKG_FILES
) $(PKG_DIST
)
47 for
dir in
`find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
49 mkdir
-p
$(PKG_DIST
)/$$dir; \
50 find
$$dir -type f
$(VCS_FILTER
) -maxdepth
1 -exec cp
{} $(PKG_DIST
)/$$dir \
; ; \
52 tar czf
$(PKG_DIST
).
tar.gz
$(PKG_DIST
)
57 .PHONY
: build
dist clean pkg-build pkg-dist lib-build lib-dist