| version 1.2, 2003/08/01 19:44:38 |
version 1.3, 2003/08/04 19:04:35 |
|
|
| # 31/07/2003 - created |
# 31/07/2003 - created |
| # |
# |
| |
|
| # $Platon: doc/soft-doc-sys/Makefile,v 1.1 2003/07/31 07:49:32 rajo Exp $ |
# $Platon: doc/soft-doc-sys/Makefile,v 1.2 2003/08/01 19:44:38 rajo Exp $ |
| |
|
| # Makefile for creating distribution of soft-doc-sys package |
# Makefile for creating distribution of soft-doc-sys package |
| # Type 'make dist' for create tar-gziped archiv. |
# Type 'make dist' for create tar-gziped archiv. |
| |
|
| PACKAGE = soft-doc-sys |
PACKAGE = soft-doc-sys |
| VERSION = 1.0 |
VERSION = 1.1 |
| |
|
| unexport SUBDIRS |
unexport SUBDIRS |
| unexport SUBDIR_OBJECTS |
unexport SUBDIR_OBJECTS |
|
|
| # Directories {{{ |
# Directories {{{ |
| |
|
| srcdir = . |
srcdir = . |
| top_srcdir = . |
|
| distdir = $(PACKAGE)-$(VERSION) |
distdir = $(PACKAGE)-$(VERSION) |
| top_distdir = $(distdir) |
top_distdir = $(distdir) |
| top_builddir = . |
top_builddir = . |
|
|
| # add names of directories here |
# add names of directories here |
| SUBDIRS = |
SUBDIRS = |
| |
|
| PROGRAM = |
PDF_OUTPUT = doc/en/pdf/Software-documentation-systems.pdf \ |
| |
doc/sk/pdf/Systemy-softverovej-dokumentacie.pdf |
| |
|
| # here add names of your source codes |
HTML_OUTPUT = doc/en/html/index.html \ |
| SOURCES = |
doc/sk/html/index.html |
| |
|
| # name of objects and header files is created |
EN_SGML = en/developer-doc-systems.sgml \ |
| # _automaticaly_ from $(SOURCES) -- you don't need |
en/index.sgml \ |
| # change this |
en/introduction.sgml \ |
| OBJECTS = $(sort $(patsubst %.c,%.o,$(SOURCES))) |
en/other-doc-systems.sgml \ |
| include_HEADERS = $(sort $(patsubst %.c,%.h,$(SOURCES))) |
en/user-doc-systems.sgml |
| DEP_FILES = $(sort $(patsubst %.c,.deps/%.P,$(SOURCES))) |
|
| |
SK_SGML = sk/developer-doc-systems.sgml \ |
| |
sk/index.sgml \ |
| |
sk/introduction.sgml \ |
| |
sk/other-doc-systems.sgml \ |
| |
sk/user-doc-systems.sgml \ |
| |
|
| |
SLIDES = doc/slides/data.php \ |
| |
doc/slides/slide.css \ |
| |
doc/slides/slide.php |
| |
|
| DISTFILES = Makefile \ |
DISTFILES = Makefile \ |
| $(SOURCES) $(include_HEADERS) \ |
$(SOURCES) $(include_HEADERS) \ |
| en/ \ |
en/ $(EN_SGML) \ |
| en/developer-doc-systems.sgml \ |
sk/ $(SK_SGML) \ |
| en/index.sgml \ |
|
| en/introduction.sgml \ |
|
| en/other-doc-systems.sgml \ |
|
| en/user-doc-systems.sgml \ |
|
| sk/ \ |
|
| sk/developer-doc-systems.sgml \ |
|
| sk/index.sgml \ |
|
| sk/introduction.sgml \ |
|
| sk/other-doc-systems.sgml \ |
|
| sk/user-doc-systems.sgml \ |
|
| slides/ \ |
slides/ \ |
| slides/data.php \ |
slides/data.php \ |
| slides/slide.css \ |
slides/slide.css \ |
| slides/slide.php |
slides/slide.php \ |
| |
doc/ doc/slides/ \ |
| |
$(SLIDES) \ |
| CONFIG_HEADER = $(top_builddir)/config.h |
doc/en/ doc/en/html/ doc/en/pdf/ \ |
| |
doc/sk/ doc/sk/html/ doc/sk/pdf/ \ |
| |
$(PDF_OUTPUT) |
| |
|
| # }}} Targets |
# }}} Targets |
| |
|
|
|
| ZIP = zip |
ZIP = zip |
| ZIP_ENV = -r9 |
ZIP_ENV = -r9 |
| GZIP_ENV = --best |
GZIP_ENV = --best |
| |
DB2HTML = db2html |
| |
DB2PDF = db2pdf |
| |
|
| CC = |
# }}} Programs |
| CPP = |
|
| CXX = |
|
| #DEBUG_FLAGS = -g -ggdb -DDEBUG |
|
| CFLAGS = -O2 -Wall -Wshadow -pedantic $(DEBUG_FLAGS) |
|
| CPPFLAGS = |
|
| LDFLAGS = |
|
| DEFS = |
|
| INCLUDES = -I$(srcdir) -I$(top_builddir) |
|
| LIBS = |
|
| |
|
| |
|
| COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
all: Makefile directories html pdf $(SLIDES) |
| CCLD = $(CC) |
|
| LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
|
| |
|
| # }}} Programs |
directories: |
| |
mkdir -p doc/en/pdf |
| |
mkdir -p doc/sk/pdf |
| |
mkdir -p doc/slides |
| |
|
| |
html: $(HTML_OUTPUT) |
| |
|
| |
pdf: $(PDF_OUTPUT) |
| |
|
| |
doc/en/pdf/%.pdf: $(EN_SGML) |
| |
$(DB2PDF) en/index.sgml && mv index.pdf "$@" |
| |
|
| |
doc/sk/pdf/%.pdf: $(SK_SGML) |
| |
SP_ENCODING=ISO-8859-2; \ |
| |
$(DB2PDF) sk/index.sgml && mv index.pdf "$@" |
| |
|
| |
doc/en/html/%.html: $(EN_SGML) |
| |
$(DB2HTML) en/index.sgml && mv en/index doc/en/html |
| |
|
| |
doc/sk/html/%.html: $(SK_SGML) |
| |
$(DB2HTML) sk/index.sgml && mv sk/index doc/sk/html |
| |
|
| all: |
doc/slides/%: |
| |
ln -s "../../slides/$(*F)" "$@" |
| |
|
| # |
# |
| # False targets. |
# False targets. |
|
|
| |
|
| clean: clean-subdirs |
clean: clean-subdirs |
| -rm -f *.o core |
-rm -f *.o core |
| |
-rm -rf doc/ en/index.junk/ sk/index.junk/ |
| |
|
| # |
# |
| # A rule to make subdirectories |
# A rule to make subdirectories |
| Line 140 $(subdir-list-clean) : dummy |
|
| Line 154 $(subdir-list-clean) : dummy |
|
| endif |
endif |
| |
|
| # Distribution targets {{{ |
# Distribution targets {{{ |
| dist: distdir |
dist: all distdir |
| GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
#ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
| -rm -rf $(distdir) |
-rm -rf $(distdir) |
| |
|
| dist-all: distdir |
dist-all: distdir |
| GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
#ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
| -rm -rf $(distdir) |
-rm -rf $(distdir) |
| |
|
| distdir: $(DISTFILES) |
distdir: $(DISTFILES) |