Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

File: [Platon] / phpMyEdit / Makefile (download)

Revision 1.66, Mon Apr 12 22:45:57 2004 UTC (19 years, 11 months ago) by nepto

Changes since 1.65: +5 -6 lines

Bumped version to 5.5pre2.

#
# Makefile for creating distribution of phpMyEdit.
# Type 'make dist' for create tar-gziped and zip archiv. 
#
# Developed by Ondrej Jombik <nepto@platon.sk>
# Based on the Makefile by Lubomir Host <rajo@platon.sk>
# Copyright (c) 2002-2004 Platon SDG, http://platon.sk/
# Documentation building support added by Lubomir Host [1/1/2003]
#

# $Platon: phpMyEdit/Makefile,v 1.65 2004/04/01 10:42:06 nepto Exp $

PACKAGE     = phpMyEdit
VERSION     = 5.5pre2
VERSION_DIR = 5.5pre2
DATE        = 2004-04-13
DATE_HUMAN  = 13th April 2004
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 =    phpMyEdit.class.php phpMyEditSetup.php \
                    lang/ \
                    lang/PME.lang.DE.inc lang/PME.lang.EN-US.inc \
                    lang/PME.lang.EN.inc lang/PME.lang.FR.inc \
                    lang/PME.lang.IT.inc lang/PME.lang.NL.inc \
                    lang/PME.lang.PT.inc lang/PME.lang.DK.inc \
                    lang/PME.lang.SK.inc lang/PME.lang.PL.inc \
                    lang/PME.lang.ES.inc lang/PME.lang.ES-AR.inc \
                    lang/PME.lang.ES-MX.inc \
                    lang/PME.lang.ZH.inc lang/PME.lang.ZH-SG.inc \
                    lang/PME.lang.RU.inc lang/PME.lang.PT-BR.inc \
                    lang/PME.lang.TR.inc lang/PME.lang.SE.inc \
                    images/ \
                    images/pme-change.png images/pme-copy.png \
                    images/pme-delete.png images/pme-view.png \
                    doc/ \
                    doc/ChangeLog doc/README doc/AUTHORS doc/TODO \
                    doc/COPYING doc/TESTS

DISTFILES_DOC =        doc/ \
                    doc/sgml/ \
                    doc/sgml/configuration.fields.sgml \
                    doc/sgml/configuration.general.sgml \
                    doc/sgml/configuration.sgml \
                    doc/sgml/defs.sgml.in doc/sgml/defs.sgml \
                    doc/sgml/extensions.sgml \
                    doc/sgml/installation.sgml \
                    doc/sgml/introduction.sgml \
                    doc/sgml/other-information.sgml \
                    doc/sgml/phpMyEdit.sgml \
                    doc/sgml/images \
                    doc/sgml/images/id-selection.png \
                    doc/sgml/images/logon.png \
                    doc/sgml/images/result-script.png \
                    doc/sgml/images/table-selection.png \
                    doc/html/ \
                    doc/html/* \
                    doc/html/images/* \
                    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/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)

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.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top