Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 16. júl 2024

Súbor: [Platon] / phpWebFileManager / Makefile (stiahnutie)

Revízia 1.56, Mon Oct 30 14:30:53 2006 UTC (17 years, 8 months ago) by rajo


Zmeny od 1.55: +3 -5 [lines]

Fix: sed: -e expression #1, char 140: unterminated address regex

#
# Makefile for creating distribution of phpWebFileManager.
# Type 'make dist' for create tar-gziped and zip archiv. 
#
# (c) 2001-2003 Lubomir 'rajo' Host <rajo@platon.sk>
#

# $Platon: phpWebFileManager/Makefile,v 1.55 2006-10-27 15:36:47 nepto Exp $

PACKAGE     = phpWebFileManager
VERSION     = 0.7.1pre2
VERSION_DIR = 0.7.1pre2
DATE        = 2006-10-27
DATE_HUMAN  = 27th October 2006
export PACKAGE
export VERSION
export DATE
export DATE_HUMAN

#
# If you want to add directory to distribution, you must write firstly
# directory name into list (with ending slash) and than files from that
# 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_CORE =    index.php Version.php \
                    config.inc.php init.inc.php icons.inc.php functions.inc.php \
                    plugins \
                    plugins/auth.php plugins/file.php plugins/imap.php \
                    doc \
                    doc/AUTHOR doc/COPYING doc/ChangeLog doc/README doc/TODO \
                    doc/PN-MODULE-HOWTO doc/VERSION \
                    icons/ icons/*.gif \
                    lang/ \
                    lang/chs/ lang/chs/global.php \
                    lang/eng/ lang/eng/global.php \
                    lang/esp/ lang/esp/global.php \
                    lang/fra/ lang/fra/global.php \
                    lang/ger/ lang/ger/global.php \
                    lang/hun/ lang/hun/global.php \
                    lang/ita/ lang/ita/global.php \
                    lang/nld/ lang/nld/global.php \
                    lang/nor/ lang/nor/global.php \
                    lang/por/ lang/por/global.php \
                    lang/prt/ lang/prt/global.php \
                    lang/rus/ lang/rus/global.php \
                    lang/svk/ lang/svk/global.php \
                    lang/swe/ lang/swe/global.php \
                    lang/tur/ lang/tur/global.php \
                    lang/zho/ lang/zho/global.php

DISTFILES_DOC =        doc/ \
                    doc/sgml/ \
                    doc/sgml \
                    doc/sgml/defs.sgml.in doc/sgml/defs.sgml \
                    doc/sgml/phpWebFileManager.sgml \
                    doc/sgml/phpWebFileManager-changelog.sgml \
                    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
ZIP_EXT         = .zip
TGZ_EXT         = .tar.gz
                
TAR             = tar
ZIP             = zip
ZIP_ENV         = -r9
GZIP_ENV        = --best

srcdir            = .
distdir            = $(PACKAGE)-$(VERSION_DIR)
packname_core    = $(PACKAGE)-$(VERSION)
packname_doc    = $(PACKAGE)-doc-$(VERSION)
top_distdir        = $(distdir)
top_builddir    = .

all: dist

clean:
    rm -f doc/sgml/defs.sgml
    rm -rf doc/html/
    rm -rf doc/pdf

doc/VERSION: Makefile
    echo $(VERSION) > $@

doc/sgml/defs.sgml: doc/sgml/defs.sgml.in
    sed -e 's/@PACKAGE@/$(PACKAGE)/g; s/@VERSION@/$(VERSION)/g; s/@DATE@/$(DATE)/g; s/@DATE_HUMAN@/$(DATE_HUMAN)/g;' $< > $@

.PHONY: doc/sgml/defs.sgml

dist-all: dist
dist: dist-core dist-doc

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)

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-core:
    @export _DISTFILES="$(DISTFILES_CORE)"; \
    make distdir

distdir-doc: documentation
    @export _DISTFILES="$(DISTFILES_DOC)"; \
    make distdir

distdir: $(_DISTFILES)
    @-rm -rf $(distdir); \
    mkdir $(distdir); \
    here=`cd $(top_builddir) && pwd`; \
    top_distdir=`cd $(distdir) && pwd`; \
    distdir=`cd $(distdir) && pwd`;
    @for file in $(_DISTFILES); do \
      d=$(srcdir); \
      if test -d $$d/$$file; then \
        mkdir $(distdir)/$$file; \
      else \
        test -f $(distdir)/$$file \
        || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
        || cp -p $$d/$$file $(distdir)/$$file || :; \
      fi; \
    done
    chmod -R u=rwX,g=,o=rX $(distdir)

doc/Changelog: doc/ChangeLog

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/                                    \
    && docbook2html -o html/ "`pwd`/sgml/$(PACKAGE).sgml"    \
    && 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/                                    \
    && docbook2pdf -o pdf/ "`pwd`/sgml/$(PACKAGE).sgml"    \
    && mv pdf/$(PACKAGE).pdf pdf/$(PACKAGE)-$(VERSION).pdf \
    && rm -rf pdf/$(PACKAGE).out pdf/$(PACKAGE).aux pdf/$(PACKAGE).log


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok