version 1.25, 2002/12/24 19:25:40 |
version 1.26, 2003/01/01 20:19:17 |
|
|
# |
# |
# Developed by Ondrej Jombik <nepto@pobox.sk> |
# Developed by Ondrej Jombik <nepto@pobox.sk> |
# Based on the Makefile by Lubomir Host <rajo@host.sk> |
# Based on the Makefile by Lubomir Host <rajo@host.sk> |
# Copyright (c) 2002 Platon SDG, http://www.platon.sk/ |
# Copyright (c) 2002-2003 Platon SDG, http://www.platon.sk/ |
|
# Documentation building support added by Lubomir Host [1/1/2003] |
# |
# |
|
|
# $Platon: phpMyEdit/Makefile,v 1.24 2002/12/17 22:12:01 nepto Exp $ |
# $Platon: phpMyEdit/Makefile,v 1.25 2002/12/24 19:25:40 nepto Exp $ |
|
|
PACKAGE = phpMyEdit |
PACKAGE = phpMyEdit |
VERSION = 5.2.5 |
VERSION = 5.2.5 |
Line 15 VERSION_DIR = 5.2.5 |
|
Line 16 VERSION_DIR = 5.2.5 |
|
|
|
# |
# |
# 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. Filesi n revision system such as CVS should be noted |
|
# explicitly. |
# |
# |
|
|
DISTFILES = phpMyEdit.class.php phpMyEditSetup.php timer.class \ |
DISTFILES_CORE = phpMyEdit.class.php phpMyEditSetup.php timer.class \ |
lang/ \ |
lang/ \ |
lang/PME.lang.DE.inc lang/PME.lang.EN-US.inc \ |
lang/PME.lang.DE.inc lang/PME.lang.EN-US.inc \ |
lang/PME.lang.EN.inc lang/PME.lang.FR.inc \ |
lang/PME.lang.EN.inc lang/PME.lang.FR.inc \ |
lang/PME.lang.IT.inc lang/PME.lang.NL.inc \ |
lang/PME.lang.IT.inc lang/PME.lang.NL.inc \ |
lang/PME.lang.PT.inc lang/PME.lang.SK.inc \ |
lang/PME.lang.PT.inc lang/PME.lang.SK.inc \ |
lang/PME.lang.SP.inc lang/PME.lang.PL.inc \ |
lang/PME.lang.SP.inc lang/PME.lang.PL.inc \ |
lang/PME.lang.RU.inc \ |
lang/PME.lang.RU.inc lang/PME.lang.PT-BR.inc \ |
images/ \ |
images/ \ |
images/pme-change.png images/pme-copy.png \ |
images/pme-change.png images/pme-copy.png \ |
images/pme-delete.png images/pme-view.png \ |
images/pme-delete.png images/pme-view.png \ |
doc/ \ |
doc/ \ |
doc/ChangeLog doc/README doc/AUTHORS doc/TODO \ |
doc/ChangeLog doc/README doc/AUTHORS doc/TODO \ |
doc/COPYING doc/language-codes.txt |
doc/COPYING doc/language-codes.txt |
|
|
|
DISTFILES_DOC = doc/ \ |
|
doc/sgml/ \ |
|
doc/sgml/configuration.fields.sgml \ |
|
doc/sgml/configuration.general.sgml \ |
|
doc/sgml/configuration.sgml \ |
|
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.gif \ |
|
doc/sgml/images/logon.gif \ |
|
doc/sgml/images/result-script.gif \ |
|
doc/sgml/images/table-selection.gif \ |
|
doc/html/ \ |
|
doc/html/* \ |
|
doc/html/images/* \ |
|
doc/pdf/ \ |
|
doc/pdf/* |
|
|
# Extension of archives |
# Extension of archives |
ZIP_EXT = .zip |
ZIP_EXT = .zip |
|
|
ZIP_ENV = -r9 |
ZIP_ENV = -r9 |
GZIP_ENV = --best |
GZIP_ENV = --best |
|
|
|
srcdir = . |
srcdir = . |
distdir = $(PACKAGE)-$(VERSION_DIR) |
distdir = $(PACKAGE)-$(VERSION_DIR) |
packname_core = $(PACKAGE)-$(VERSION) |
packname = $(PACKAGE)-$(VERSION) |
packname_doc = $(PACKAGE)-doc-$(VERSION) |
top_distdir = $(distdir) |
top_distdir = $(distdir) |
top_builddir = . |
top_builddir = . |
|
|
dist: distdir |
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(packname)$(TGZ_EXT) $(distdir) |
|
# ZIP=$(ZIP_ENV) $(ZIP) $(packname)$(ZIP_EXT) $(distdir) |
|
-rm -rf $(distdir) |
|
|
|
dist-all: dist |
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) |
|
|
distdir: $(DISTFILES) |
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) |
-rm -rf $(distdir) |
mkdir $(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`; \ |
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 76 distdir: $(DISTFILES) |
|
Line 117 distdir: $(DISTFILES) |
|
done |
done |
chmod -R u=rwX,g=,o=rX $(distdir) |
chmod -R u=rwX,g=,o=rX $(distdir) |
|
|
|
documentation: html pdf |
|
|
|
html: |
|
cd doc/ \ |
|
&& rm -rf html/ \ |
|
&& db2html "`pwd`/sgml/$(PACKAGE).sgml" \ |
|
&& mv $(PACKAGE) html/ \ |
|
&& cp -r sgml/images html/ \ |
|
&& rm -rf html/images/CVS |
|
|
|
pdf: |
|
cd doc/ \ |
|
&& rm -rf pdf/ \ |
|
&& db2pdf "`pwd`/sgml/$(PACKAGE).sgml" \ |
|
&& mkdir pdf \ |
|
&& mv $(PACKAGE).pdf pdf/ \ |
|
&& rm -rf $(PACKAGE).out $(PACKAGE).aux $(PACKAGE).log |
|
|