| verzia 1.42, 2002/08/16 20:31:42 |
verzia 1.43, 2002/09/04 04:34:42 |
| Riadok 73 STRIP = @STRIP@ |
|
| Riadok 73 STRIP = @STRIP@ |
|
| AWK = @AWK@ |
AWK = @AWK@ |
| JADEWRAP = @JADEWRAP@ |
JADEWRAP = @JADEWRAP@ |
| DOXYGEN = @DOXYGEN@ |
DOXYGEN = @DOXYGEN@ |
| |
DB_HTML2MAN = @DB_HTML2MAN@ |
| |
DOCBOOK2MAN = @DOCBOOK2MAN@ |
| TAR = tar |
TAR = tar |
| GZIP_ENV = --best |
GZIP_ENV = --best |
| NROFF = nroff |
NROFF = nroff |
| Riadok 103 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
| Riadok 105 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
| |
|
| # Targets {{{ |
# Targets {{{ |
| |
|
| SGML_FILES = $(srcdir)/sgml/introduction.installation.sgml \ |
SGML_USAGE_FILES = $(srcdir)/sgml/usage.context-flags.sgml \ |
| $(srcdir)/sgml/introduction.overview.sgml \ |
$(srcdir)/sgml/usage.context-manipulation.sgml \ |
| $(srcdir)/sgml/introduction.sgml \ |
$(srcdir)/sgml/usage.error-codes.sgml \ |
| $(srcdir)/sgml/libcfg+.sgml \ |
$(srcdir)/sgml/usage.options-set.sgml \ |
| $(srcdir)/sgml/other-information.sgml \ |
$(srcdir)/sgml/usage.parsing.sgml \ |
| $(srcdir)/sgml/preface.sgml \ |
$(srcdir)/sgml/usage.sgml \ |
| $(srcdir)/sgml/usage.context-flags.sgml \ |
$(srcdir)/sgml/usage.properties.sgml \ |
| $(srcdir)/sgml/usage.context-manipulation.sgml \ |
|
| $(srcdir)/sgml/usage.error-codes.sgml \ |
|
| $(srcdir)/sgml/usage.options-set.sgml \ |
|
| $(srcdir)/sgml/usage.parsing.sgml \ |
|
| $(srcdir)/sgml/usage.sgml \ |
|
| $(srcdir)/sgml/usage.properties.sgml \ |
|
| $(srcdir)/sgml/defs-output.sgml |
|
| |
|
| #SGML_FILES = $(srcdir)/sgml/*.sgml |
SGML_FILES = $(srcdir)/sgml/introduction.installation.sgml \ |
| |
$(srcdir)/sgml/introduction.overview.sgml \ |
| |
$(srcdir)/sgml/introduction.sgml \ |
| |
$(srcdir)/sgml/libcfg+.sgml \ |
| |
$(srcdir)/sgml/other-information.sgml \ |
| |
$(srcdir)/sgml/preface.sgml \ |
| |
$(srcdir)/sgml/defs-output.sgml \ |
| |
$(SGML_USAGE_FILES) |
| |
|
| |
MANPAGES = $(top_builddir)/doc/man/cfg_add_property.3 \ |
| |
$(top_builddir)/doc/man/cfg_context.3 \ |
| |
$(top_builddir)/doc/man/cfg_option.3 \ |
| |
$(top_builddir)/doc/man/cfg_parse.3 \ |
| |
$(top_builddir)/doc/man/cfg_print_error.3 \ |
| |
$(top_builddir)/doc/man/cfg_set_context_flag.3 |
| |
|
| |
MAN_SGML_FILES = $(top_builddir)/doc/man/usage.context-flags.sgml \ |
| |
$(top_builddir)/doc/man/usage.context-manipulation.sgml \ |
| |
$(top_builddir)/doc/man/usage.error-codes.sgml \ |
| |
$(top_builddir)/doc/man/usage.options-set.sgml \ |
| |
$(top_builddir)/doc/man/usage.parsing.sgml \ |
| |
$(top_builddir)/doc/man/usage.sgml \ |
| |
$(top_builddir)/doc/man/usage.properties.sgml \ |
| |
$(top_builddir)/doc/man/defs.sgml |
| |
|
| # Don't add '$(srcdir)/' prefix here: |
# Don't add '$(srcdir)/' prefix here: |
| EXAMPLES = examples/example.c \ |
EXAMPLES = examples/example.c \ |
| Riadok 203 $(top_srcdir)/config.h.in: $(top_srcdir) |
|
| Riadok 221 $(top_srcdir)/config.h.in: $(top_srcdir) |
|
| top_builddir := $(shell echo `cd $(top_builddir) && pwd` ) |
top_builddir := $(shell echo `cd $(top_builddir) && pwd` ) |
| |
|
| |
|
| doc: html doxygen #pdf |
doc: html doxygen man #pdf |
| |
|
| html: sgml/defs.sgml $(SGML_FILES) |
html: sgml/defs.sgml $(SGML_FILES) |
| @if [ "x$(JADEWRAP)" = "x:" ]; then \ |
@if [ "x$(JADEWRAP)" = "x:" ]; then \ |
| Riadok 214 html: sgml/defs.sgml $(SGML_FILES) |
|
| Riadok 232 html: sgml/defs.sgml $(SGML_FILES) |
|
| rm -f $(srcdir)/sgml/defs-output-type.sgml; \ |
rm -f $(srcdir)/sgml/defs-output-type.sgml; \ |
| fi |
fi |
| |
|
| man: sgml/defs.sgml $(SGML_FILES) |
MAN_MAGIC := $(shell mkdir man > /dev/null 2>&1 || :) |
| @if [ "x$(JADEWRAP)" = "x:" ]; then \ |
man: $(MAN_SGML_FILES) $(MANPAGES) |
| echo 'Program "jw" (DocBook) seems to be not available, man page build skipped.'; \ |
|
| else \ |
$(top_builddir)/doc/man/cfg_add_property.3: $(top_builddir)/doc/man/usage.properties.sgml |
| echo '<!ENTITY % output-man "INCLUDE">' > $(srcdir)/doc/sgml/defs-output-type.sgml; \ |
$(top_builddir)/doc/man/cfg_context.3: $(top_builddir)/doc/man/usage.context-manipulation.sgml |
| $(JADEWRAP) -f docbook -b man -o $(top_builddir)/doc/man $(srcdir)/sgml/libcfg+.sgml; \ |
$(top_builddir)/doc/man/cfg_option.3: $(top_builddir)/doc/man/usage.options-set.sgml |
| rm -f $(srcdir)/sgml/defs-output-type.sgml; \ |
$(top_builddir)/doc/man/cfg_parse.3: $(top_builddir)/doc/man/usage.parsing.sgml |
| fi |
$(top_builddir)/doc/man/cfg_print_error.3: $(top_builddir)/doc/man/usage.error-codes.sgml |
| |
$(top_builddir)/doc/man/cfg_set_context_flag.3: $(top_builddir)/doc/man/usage.context-flags.sgml |
| |
|
| |
# man SGML files |
| |
$(top_builddir)/doc/man/%.sgml: $(top_srcdir)/doc/sgml/%.sgml |
| |
$(DB_HTML2MAN) $< > $@ |
| |
|
| |
$(top_builddir)/doc/man/%.3: |
| |
$(DOCBOOK2MAN) $< -o man && cat man/manpage.links >> manpage.symlinks |
| |
|
| |
|
| doxygen: Doxyfile |
doxygen: Doxyfile |
| @rm -rf doxygen/ |
@rm -rf doxygen/ |
| Riadok 238 doxygen: Doxyfile |
|
| Riadok 265 doxygen: Doxyfile |
|
| install: all installdirs \ |
install: all installdirs \ |
| install-html \ |
install-html \ |
| install-doxygen \ |
install-doxygen \ |
| |
install-man \ |
| install-examples |
install-examples |
| # install-sgml |
# install-sgml |
| uninstall: uninstall-html \ |
uninstall: uninstall-html \ |
| uninstall-examples \ |
uninstall-examples \ |
| uninstall-doxygen \ |
uninstall-doxygen \ |
| |
uninstall-man \ |
| uninstall-dirs |
uninstall-dirs |
| # uninstall-sgml |
# uninstall-sgml |
| |
|
| Riadok 334 uninstall-doxygen: |
|
| Riadok 363 uninstall-doxygen: |
|
| @echo " rm -rf $(DESTDIR)$(pkgdatadir)/doxygen"; |
@echo " rm -rf $(DESTDIR)$(pkgdatadir)/doxygen"; |
| @-rm -rf $(DESTDIR)$(pkgdatadir)/doxygen; |
@-rm -rf $(DESTDIR)$(pkgdatadir)/doxygen; |
| |
|
| |
install-man: |
| |
@$(NORMAL_INSTALL) |
| |
@$(mkinstalldirs) $(DESTDIR)$(man3dir) |
| |
@if test -d $(top_builddir)/doc/man ; then \ |
| |
cd $(top_builddir)/doc/man && \ |
| |
for p in *.3; do \ |
| |
echo " Installing file $(DESTDIR)$(man3dir)/$$p"; \ |
| |
$(INSTALL_DATA) $$p $(DESTDIR)$(man3dir)/$$p; \ |
| |
done \ |
| |
else \ |
| |
echo -en "Directroy $(top_builddir)/doc/man not found, "; \ |
| |
echo "Manpages NOT installed!"; \ |
| |
fi |
| |
uninstall-man: |
| |
@$(NORMAL_UNINSTALL) |
| |
@echo " rm -f $(DESTDIR)$(man3dir)/"; |
| |
@if test -d $(top_builddir)/doc/man ; then \ |
| |
cd $(top_builddir)/doc/man && \ |
| |
for p in *.3; do \ |
| |
echo " rm -rf $(DESTDIR)$(man3dir)/$$p"; \ |
| |
rm -f $(DESTDIR)$(man3dir)/$$p; \ |
| |
done |
| |
|
| install-examples: |
install-examples: |
| @$(NORMAL_INSTALL) |
@$(NORMAL_INSTALL) |
| @$(mkinstalldirs) $(DESTDIR)$(pkgdatadir) |
@$(mkinstalldirs) $(DESTDIR)$(pkgdatadir) |
|
|
| -rm -rf html/ |
-rm -rf html/ |
| |
|
| clean-man: |
clean-man: |
| -rm -rf man/ |
-rm -rf man/ manpage.* |
| |
|
| clean-doxygen: |
clean-doxygen: |
| -rm -rf doxygen/ |
-rm -rf doxygen/ |