| version 1.26, 2003/01/01 20:19:17 |
version 1.27, 2003/01/08 11:44:24 |
|
|
| # Documentation building support added by Lubomir Host [1/1/2003] |
# Documentation building support added by Lubomir Host [1/1/2003] |
| # |
# |
| |
|
| # $Platon: phpMyEdit/Makefile,v 1.25 2002/12/24 19:25:40 nepto Exp $ |
# $Platon: phpMyEdit/Makefile,v 1.26 2003/01/01 20:19:17 nepto Exp $ |
| |
|
| PACKAGE = phpMyEdit |
PACKAGE = phpMyEdit |
| VERSION = 5.2.5 |
VERSION = 5.2.5 |
| VERSION_DIR = 5.2.5 |
VERSION_DIR = 5.2.5 |
| |
DATE = 2003-01-07 |
| |
export PACKAGE |
| |
export VERSION |
| |
export DATE |
| |
|
| # |
# |
| # If you want to add directory to distribution, you must write firstly |
# If you want to add directory to distribution, you must write firstly |
| Line 62 DISTFILES_DOC = doc/ \ |
|
| Line 66 DISTFILES_DOC = doc/ \ |
|
| doc/pdf/* |
doc/pdf/* |
| |
|
| # Extension of archives |
# Extension of archives |
| ZIP_EXT = .zip |
ZIP_EXT = .zip |
| TGZ_EXT = .tar.gz |
TGZ_EXT = .tar.gz |
| |
|
| #TAR = gtar |
TAR = tar |
| TAR = tar |
ZIP = zip |
| ZIP = zip |
ZIP_ENV = -r9 |
| ZIP_ENV = -r9 |
GZIP_ENV = --best |
| GZIP_ENV = --best |
|
| |
|
| srcdir = . |
srcdir = . |
| distdir = $(PACKAGE)-$(VERSION_DIR) |
distdir = $(PACKAGE)-$(VERSION_DIR) |
| Line 78 packname_doc = $(PACKAGE)-doc-$(VERSION) |
|
| Line 81 packname_doc = $(PACKAGE)-doc-$(VERSION) |
|
| top_distdir = $(distdir) |
top_distdir = $(distdir) |
| top_builddir = . |
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;' $< > $@ |
| |
.PHONY: doc/sgml/defs.sgml |
| |
|
| dist-all: dist |
dist-all: dist |
| dist: dist-core dist-doc |
dist: dist-core dist-doc |
| |
|
| Line 100 distdir-doc: documentation |
|
| Line 116 distdir-doc: documentation |
|
| make distdir |
make distdir |
| |
|
| distdir: $(_DISTFILES) |
distdir: $(_DISTFILES) |
| -rm -rf $(distdir); \ |
@-rm -rf $(distdir); \ |
| mkdir $(distdir); \ |
mkdir $(distdir); \ |
| here=`cd $(top_builddir) && pwd`; \ |
here=`cd $(top_builddir) && pwd`; \ |
| top_distdir=`cd $(distdir) && pwd`; \ |
top_distdir=`cd $(distdir) && pwd`; \ |
| Line 120 distdir: $(_DISTFILES) |
|
| Line 136 distdir: $(_DISTFILES) |
|
| documentation: html pdf |
documentation: html pdf |
| |
|
| html: |
html: |
| |
@echo; \ |
| |
echo "----------------------------------------------------"; \ |
| |
echo "Generating HTML documentation, please be patient ..."; \ |
| |
echo "----------------------------------------------------"; \ |
| |
echo; \ |
| cd doc/ \ |
cd doc/ \ |
| && rm -rf html/ \ |
&& rm -rf html/ \ |
| && db2html "`pwd`/sgml/$(PACKAGE).sgml" \ |
&& db2html "`pwd`/sgml/$(PACKAGE).sgml" \ |
|
|
| && rm -rf html/images/CVS |
&& rm -rf html/images/CVS |
| |
|
| pdf: |
pdf: |
| |
@echo; \ |
| |
echo "---------------------------------------------------"; \ |
| |
echo "Generating PDF documentation, please be patient ..."; \ |
| |
echo "---------------------------------------------------"; \ |
| |
echo; \ |
| cd doc/ \ |
cd doc/ \ |
| && rm -rf pdf/ \ |
&& rm -rf pdf/ \ |
| && db2pdf "`pwd`/sgml/$(PACKAGE).sgml" \ |
&& db2pdf "`pwd`/sgml/$(PACKAGE).sgml" \ |