1 # $Id: Makefile,v 1.5 2004/11/25 20:18:39 x99laine Exp $
2 ################################################################################
5 VERSION
:= $(shell grep VERSION ChangeLog | head
-1 | sed
-e
"s/VERSION //;s/\t.*//")
8 PKG_DIST
= $(PKG_NAME
)-$(VERSION
)
9 PKG_FILES
= AUTHORS ChangeLog COPYING README Makefile
10 PKG_DIRS
= configs htdocs
include install.d plugins po scripts templates upgrade
12 VCS_FILTER
= ! -name .arch-ids
! -name CVS
14 ################################################################################
20 headache
-c
install.d
/platal-dev
/templates
/header.conf
-h
install.d
/platal-dev
/templates
/header \
21 `find templates -name '*.tpl' ! -path 'templates/xnet/skin.tpl' ! -path 'templates/skin/*.tpl' ! -name 'vcard.tpl' `
27 bzdist
: clean pkg-bzdist
30 rm -rf
include/platal
/globals.inc.php
31 rm -f htdocs
/banana
/banana.css htdocs
/valid.html
include/banana htdocs
/banana
/img
34 sed
-e
's,@VERSION@,$(VERSION),g' $< > $@
36 ################################################################################
43 touch templates_c
/valid.html
44 ln
-sf ..
/templates_c
/valid.html htdocs
/valid.html
46 devel
: build templates_c htdocs
/valid.html
49 ################################################################################
50 # diogenes package targets
52 pkg-build
: include/platal
/globals.inc.php
54 $(PKG_DIST
): pkg-build
56 cp
-a
$(PKG_FILES
) $(PKG_DIST
)
57 for
dir in
`find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
59 mkdir
-p
$(PKG_DIST
)/$$dir; \
60 find
$$dir -type f
-maxdepth
1 -exec cp
{} $(PKG_DIST
)/$$dir \
; ; \
64 rm -f
$(PKG_DIST
).
tar.gz
65 tar czf
$(PKG_DIST
).
tar.gz
$(PKG_DIST
)
68 pkg-bzdist
: $(PKG_DIST
)
69 rm -f
$(PKG_DIST
).
tar.bz2
70 tar cjf
$(PKG_DIST
).
tar.bz2
$(PKG_DIST
)
73 .PHONY
: build
dist clean pkg-build pkg-dist