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 .arch-ids
! -name .arch-inventory
19 rm -rf locale banana
/include/banana.inc.php
23 sed
-e
's,@VERSION@,$(VERSION) The Bearded Release,g' $< > $@
26 # banana package targets
28 pkg-build
: banana
/banana.inc.php
33 rm -rf
$(PKG_DIST
) $(PKG_DIST
).
tar.gz
35 cp
-a
$(PKG_FILES
) $(PKG_DIST
)
36 for
dir in
`find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
38 mkdir
-p
$(PKG_DIST
)/$$dir; \
39 find
$$dir -type f
$(VCS_FILTER
) -maxdepth
1 -exec cp
{} $(PKG_DIST
)/$$dir \
; ; \
41 tar czf
$(PKG_DIST
).
tar.gz
$(PKG_DIST
)
46 .PHONY
: build
dist clean pkg-build pkg-dist lib-build lib-dist