Blame doc/Makefile

Packit 802e35
##########################################################################
Packit 802e35
#  ocaml-gettext: a library to translate messages                        #
Packit 802e35
#                                                                        #
Packit 802e35
#  Copyright (C) 2003-2008 Sylvain Le Gall <sylvain@le-gall.net>         #
Packit 802e35
#                                                                        #
Packit 802e35
#  This library is free software; you can redistribute it and/or         #
Packit 802e35
#  modify it under the terms of the GNU Lesser General Public            #
Packit 802e35
#  License as published by the Free Software Foundation; either          #
Packit 802e35
#  version 2.1 of the License, or (at your option) any later version;    #
Packit 802e35
#  with the OCaml static compilation exception.                          #
Packit 802e35
#                                                                        #
Packit 802e35
#  This library is distributed in the hope that it will be useful,       #
Packit 802e35
#  but WITHOUT ANY WARRANTY; without even the implied warranty of        #
Packit 802e35
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     #
Packit 802e35
#  Lesser General Public License for more details.                       #
Packit 802e35
#                                                                        #
Packit 802e35
#  You should have received a copy of the GNU Lesser General Public      #
Packit 802e35
#  License along with this library; if not, write to the Free Software   #
Packit 802e35
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307   #
Packit 802e35
#  USA                                                                   #
Packit 802e35
##########################################################################
Packit 802e35
Packit 802e35
include ../ConfMakefile
Packit 802e35
Packit 802e35
all:
Packit 802e35
Packit 802e35
ifeq ($(BUILD_DOC),yes)
Packit 802e35
# HTML documentation
Packit 802e35
HTML_TARGETS=$(call HTML_TARGET,reference-manual.xml)
Packit 802e35
$(call HTML_TARGET,reference-manual.xml): IMAGES=gui.png gui-fr.png
Packit 802e35
Packit 802e35
# PDF documentation
Packit 802e35
ifeq ($(BUILD_DOC_PDF),yes)
Packit 802e35
PDF_TARGETS=$(call PDF_TARGET,reference-manual.xml)
Packit 802e35
endif
Packit 802e35
Packit 802e35
ODOC_TARGETS=$(call ODOC_TARGET,api) $(call ODOC_TARGET,api-ext)
Packit 802e35
Packit 802e35
# Manpage documentation
Packit 802e35
MAN_TARGETS=ocaml-gettext.1 ocaml-xgettext.1 ocaml-gettext.5
Packit 802e35
ocaml-gettext.1: ocaml-gettext.xml
Packit 802e35
ocaml-xgettext.1: ocaml-xgettext.xml
Packit 802e35
ocaml-gettext.5: ocaml-gettext-options.xml
Packit 802e35
endif
Packit 802e35
Packit 802e35
include ../TopMakefile
Packit 802e35
Packit 802e35
ifeq ($(BUILD_DOC),yes)
Packit 802e35
ALL_PACKAGES=gettext.base gettext.extension gettext.extract 
Packit 802e35
Packit 802e35
ifeq ($(BUILD_CAMOMILE),yes)
Packit 802e35
ALL_PACKAGES+=gettext-camomile 
Packit 802e35
endif
Packit 802e35
Packit 802e35
ifeq ($(BUILD_STUB),yes)
Packit 802e35
ALL_PACKAGES+=gettext-stub
Packit 802e35
endif
Packit 802e35
Packit 802e35
$(call ODOC_TARGET,api):REQUIRES=$(ALL_PACKAGES)
Packit 802e35
$(call ODOC_TARGET,api):OCAMLDOCFLAGS+=-I ../libgettext-ocaml/
Packit 802e35
$(call ODOC_TARGET,api):../libgettext-ocaml/gettext.mli 
Packit 802e35
$(call ODOC_TARGET,api):../libgettext-ocaml/gettextTypes.ml
Packit 802e35
$(call ODOC_TARGET,api):../libgettext-ocaml/gettextDummy.ml
Packit 802e35
Packit 802e35
ifeq ($(BUILD_CAMOMILE),yes)
Packit 802e35
$(call ODOC_TARGET,api):../libgettext-camomile-ocaml/gettextCamomile.mli
Packit 802e35
$(call ODOC_TARGET,api):OCAMLDOCFLAGS+=-I ../libgettext-camomile-ocaml/
Packit 802e35
endif
Packit 802e35
Packit 802e35
ifeq ($(BUILD_STUB),yes)
Packit 802e35
$(call ODOC_TARGET,api):../libgettext-stub-ocaml/gettextStub.ml
Packit 802e35
$(call ODOC_TARGET,api):OCAMLDOCFLAGS+=-I ../libgettext-stub-ocaml/
Packit 802e35
endif
Packit 802e35
Packit 802e35
$(call ODOC_TARGET,api-ext):OCAMLDOCFLAGS+=-I ../libgettext-ocaml 
Packit 802e35
$(call ODOC_TARGET,api-ext):REQUIRES=$(ALL_PACKAGES)
Packit 802e35
$(call ODOC_TARGET,api-ext):$(filter-out ../libgettext-ocaml/pr_gettext.ml,$(wildcard ../libgettext-ocaml/*.ml))
Packit 802e35
$(call ODOC_TARGET,api-ext):$(wildcard ../libgettext-ocaml/*.mli)
Packit 802e35
endif
Packit 802e35
Packit 802e35
clean::
Packit 802e35
	-$(RM) '$(CURDIR)/ocaml-gettext.5'
Packit 802e35
	-$(RM) '$(CURDIR)/ocaml-xgettext.1'
Packit 802e35
	-$(RM) '$(CURDIR)/ocaml-gettext.1'