| version 1.22, 2003/02/04 21:50:50 |
version 1.23, 2003/02/05 01:34:23 |
|
|
| # (c) 2001 Lubomir 'rajo' Host <host8@kepler.fmph.uniba.sk> |
# (c) 2001 Lubomir 'rajo' Host <host8@kepler.fmph.uniba.sk> |
| # |
# |
| |
|
| # $Platon: phpWebFileManager/Makefile,v 1.21 2003/01/15 22:11:31 nepto Exp $ |
# $Platon: phpWebFileManager/Makefile,v 1.22 2003/02/04 21:50:50 nepto Exp $ |
| |
|
| PACKAGE = phpWebFileManager |
PACKAGE = phpWebFileManager |
| VERSION = 0.4.3 |
VERSION = 0.4.4 |
| VERSION_DIR = 0.4.3 |
VERSION_DIR = 0.4.4 |
| DATE = 2003-02-04 |
DATE = 2003-02-05 |
| |
DATE_HUMAN = 5th February 2003 |
| export PACKAGE |
export PACKAGE |
| export VERSION |
export VERSION |
| export DATE |
export DATE |
| |
export DATE_HUMAN |
| |
|
| # |
# |
| # If you want to add directory to distribution, you must write firstly |
# If you want to add directory to distribution, you must write firstly |
| # directory name into list (with ending slash) and than files from |
# directory name into list (with ending slash) and than files from that |
| # that directory. |
# directory. |
| |
# |
| |
# Wildcars usage is possible, but the convention allows it only for |
| |
# autogenerated files. Files in revision system such as CVS should be noted |
| |
# explicitly. |
| # |
# |
| |
|
| DISTFILES = index.php Version.php \ |
DISTFILES_CORE = index.php Version.php \ |
| config.inc.php init.inc.php icons.inc.php functions.inc.php \ |
config.inc.php init.inc.php icons.inc.php functions.inc.php \ |
| plugins \ |
plugins \ |
| plugins/auth.php plugins/file.php \ |
plugins/auth.php plugins/file.php \ |
| doc \ |
doc \ |
| doc/AUTHOR doc/COPYING doc/ChangeLog doc/README doc/TODO \ |
doc/AUTHOR doc/COPYING doc/ChangeLog doc/README doc/TODO \ |
| doc/PN-MODULE-HOWTO \ |
doc/PN-MODULE-HOWTO \ |
| doc/sgml \ |
icons/ \ |
| doc/sgml/defs.sgml.in doc/sgml/defs.sgml \ |
icons/back.gif icons/dir.gif \ |
| doc/sgml/phpWebFileManager.sgml \ |
icons/burst.gif icons/doc.gif icons/key.gif icons/ps.gif \ |
| doc/sgml/phpWebFileManager-changelog.sgml \ |
icons/tar.gif icons/compressed.gif icons/image.gif icons/movie.gif \ |
| doc/sgml/introduction.sgml \ |
icons/sound.gif icons/text.gif icons/binary.gif icons/image2.gif \ |
| doc/sgml/other-information.sgml \ |
icons/patch.gif icons/sound2.gif icons/uu.gif \ |
| doc/sgml/usage.sgml \ |
lang/ \ |
| doc/sgml/changelog.sgml \ |
lang/eng/ \ |
| icons/ \ |
lang/eng/global.php \ |
| icons/back.gif icons/dir.gif \ |
lang/ger/ \ |
| icons/burst.gif icons/doc.gif icons/key.gif icons/ps.gif \ |
lang/ger/global.php \ |
| icons/tar.gif icons/compressed.gif icons/image.gif icons/movie.gif \ |
lang/svk/ \ |
| icons/sound.gif icons/text.gif icons/binary.gif icons/image2.gif \ |
lang/svk/global.php \ |
| icons/patch.gif icons/sound2.gif icons/uu.gif \ |
lang/nor/ \ |
| lang/ \ |
lang/nor/global.php \ |
| lang/eng/ \ |
lang/esp/ \ |
| lang/eng/global.php \ |
lang/esp/global.php \ |
| lang/ger/ \ |
lang/ita/ \ |
| lang/ger/global.php \ |
lang/ita/global.php |
| lang/svk/ \ |
|
| lang/svk/global.php \ |
DISTFILES_DOC = doc/ \ |
| lang/nor/ \ |
doc/sgml/ \ |
| lang/nor/global.php \ |
doc/sgml \ |
| lang/esp/ \ |
doc/sgml/defs.sgml.in doc/sgml/defs.sgml \ |
| lang/esp/global.php \ |
doc/sgml/phpWebFileManager.sgml \ |
| lang/ita/ \ |
doc/sgml/phpWebFileManager-changelog.sgml \ |
| lang/ita/global.php |
doc/sgml/introduction.sgml \ |
| |
doc/sgml/other-information.sgml \ |
| |
doc/sgml/usage.sgml \ |
| |
doc/sgml/changelog.sgml \ |
| |
doc/html/ \ |
| |
doc/html/* \ |
| |
doc/pdf/ \ |
| |
doc/pdf/* |
| |
|
| # Extension of archives |
# Extension of archives |
| ZIP_EXT = .zip |
ZIP_EXT = .zip |
| Line 67 GZIP_ENV = --best |
|
| Line 80 GZIP_ENV = --best |
|
| |
|
| srcdir = . |
srcdir = . |
| distdir = $(PACKAGE)-$(VERSION_DIR) |
distdir = $(PACKAGE)-$(VERSION_DIR) |
| packname = $(PACKAGE)-$(VERSION) |
packname_core = $(PACKAGE)-$(VERSION) |
| |
packname_doc = $(PACKAGE)-doc-$(VERSION) |
| top_distdir = $(distdir) |
top_distdir = $(distdir) |
| top_builddir = . |
top_builddir = . |
| |
|
|
|
| doc/sgml/defs.sgml: doc/sgml/defs.sgml.in |
doc/sgml/defs.sgml: doc/sgml/defs.sgml.in |
| sed -e 's/@PACKAGE@/$(PACKAGE)/g; \ |
sed -e 's/@PACKAGE@/$(PACKAGE)/g; \ |
| s/@VERSION@/$(VERSION)/g; \ |
s/@VERSION@/$(VERSION)/g; \ |
| s/@DATE@/$(DATE)/g;' $< > $@ |
s/@DATE@/$(DATE)/g; \ |
| |
s/@DATE_HUMAN@/$(DATE_HUMAN)/g;' $< > $@ |
| .PHONY: doc/sgml/defs.sgml |
.PHONY: doc/sgml/defs.sgml |
| |
|
| dist-all: dist |
dist-all: dist |
| dist: distdir |
dist: dist-core dist-doc |
| GZIP=$(GZIP_ENV) $(TAR) chozf $(packname)$(TGZ_EXT) $(distdir) |
|
| # ZIP=$(ZIP_ENV) $(ZIP) $(packname)$(ZIP_EXT) $(distdir) |
dist-core: distdir-core |
| |
GZIP=$(GZIP_ENV) $(TAR) chozf $(packname_core)$(TGZ_EXT) $(distdir) |
| |
# ZIP=$(ZIP_ENV) $(ZIP) $(packname_core)$(ZIP_EXT) $(distdir) |
| -rm -rf $(distdir) |
-rm -rf $(distdir) |
| |
|
| dist-all: dist |
dist-doc: distdir-doc |
| |
GZIP=$(GZIP_ENV) $(TAR) chozf $(packname_doc)$(TGZ_EXT) $(distdir) |
| |
# ZIP=$(ZIP_ENV) $(ZIP) $(packname_doc)$(ZIP_EXT) $(distdir) |
| |
-rm -rf $(distdir) |
| |
|
| distdir: $(DISTFILES) |
distdir-core: |
| @-rm -rf $(distdir) |
@export _DISTFILES="$(DISTFILES_CORE)"; \ |
| mkdir $(distdir) |
make distdir |
| |
|
| |
distdir-doc: documentation |
| |
@export _DISTFILES="$(DISTFILES_DOC)"; \ |
| |
make distdir |
| |
|
| |
distdir: $(_DISTFILES) |
| |
@-rm -rf $(distdir); \ |
| |
mkdir $(distdir); \ |
| here=`cd $(top_builddir) && pwd`; \ |
here=`cd $(top_builddir) && pwd`; \ |
| top_distdir=`cd $(distdir) && pwd`; \ |
top_distdir=`cd $(distdir) && pwd`; \ |
| distdir=`cd $(distdir) && pwd`; |
distdir=`cd $(distdir) && pwd`; |
| @for file in $(DISTFILES); do \ |
@for file in $(_DISTFILES); do \ |
| d=$(srcdir); \ |
d=$(srcdir); \ |
| if test -d $$d/$$file; then \ |
if test -d $$d/$$file; then \ |
| mkdir $(distdir)/$$file; \ |
mkdir $(distdir)/$$file; \ |
| Line 110 distdir: $(DISTFILES) |
|
| Line 138 distdir: $(DISTFILES) |
|
| done |
done |
| chmod -R u=rwX,g=,o=rX $(distdir) |
chmod -R u=rwX,g=,o=rX $(distdir) |
| |
|
| |
doc/ChangeLog: doc/sgml/$(PACKAGE)-changelog.sgml doc/sgml/changelog.sgml doc/sgml/defs.sgml |
| |
docbook2txt $< -o doc \ |
| |
&& cat doc/$(PACKAGE)-changelog.txt \ |
| |
| sed 's/Chapter[ ]*1.[ ]*\('$(PACKAGE)' ChangeLog\)/\1/g' \ |
| |
| sed 's/^[ ]*\(1\.1\.[ ]*\)\?Version[ ]*history[ ]*$$//g' \ |
| |
| sed -ne '/^[ ]*'$(PACKAGE)' ChangeLog[ ]*$$/,$$p;' \ |
| |
| sed '/^References/,$$d' > $@ \ |
| |
&& echo "" >> $@ \ |
| |
&& rm -rf doc/$(PACKAGE)-changelog.txt |
| |
|
| |
documentation: html pdf |
| |
|
| |
html: doc/sgml/defs.sgml |
| |
@echo; \ |
| |
echo "----------------------------------------------------"; \ |
| |
echo "Generating HTML documentation, please be patient ..."; \ |
| |
echo "----------------------------------------------------"; \ |
| |
echo; \ |
| |
cd doc/ \ |
| |
&& db2html "`pwd`/sgml/$(PACKAGE).sgml" \ |
| |
&& rm -rf html/ \ |
| |
&& ( mv $(PACKAGE) html/ || mv sgml/$(PACKAGE) html/ ) \ |
| |
&& : cp -r sgml/images html/ \ |
| |
&& : rm -rf html/images/CVS |
| |
|
| |
pdf: doc/sgml/defs.sgml |
| |
@echo; \ |
| |
echo "---------------------------------------------------"; \ |
| |
echo "Generating PDF documentation, please be patient ..."; \ |
| |
echo "---------------------------------------------------"; \ |
| |
echo; \ |
| |
cd doc/ \ |
| |
&& : cp -r sgml/images/ ./ \ |
| |
&& db2pdf "`pwd`/sgml/$(PACKAGE).sgml" \ |
| |
&& rm -rf pdf/ \ |
| |
&& : rm -rf images/ \ |
| |
&& mkdir pdf \ |
| |
&& mv $(PACKAGE).pdf pdf/$(PACKAGE)-$(VERSION).pdf \ |
| |
&& rm -rf $(PACKAGE).out $(PACKAGE).aux $(PACKAGE).log |
| |
|