mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Implemented support for javadoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@8983 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e4681fd55b
commit
e687d9c5f4
2 changed files with 62 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
Tue Feb 6 16:59:20 2001 Nicola Pero <nicola@brainstorm.co.uk>
|
||||
|
||||
Javadoc support added.
|
||||
* common.make (JAVADOC): Set it.
|
||||
* rules.make (ALL_JAVADOCFLAGS): Set it. (%.build): Pass
|
||||
JAVADOC_FILES and JAVADOC_SOURCEPATH down.
|
||||
* documentation.make: Added support for javadoc documentation.
|
||||
|
||||
Sun Feb 4 23:19:38 2001 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* debian/*: Applied patches by Matthias Klose <doko@debian.org> to
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#
|
||||
# -*-makefile-*-
|
||||
# documentation.make
|
||||
#
|
||||
# Makefile rules to build GNUstep-based texinfo documentation.
|
||||
#
|
||||
# Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Scott Christley <scottc@net-community.com>
|
||||
#
|
||||
|
@ -43,10 +43,18 @@ include $(GNUSTEP_MAKEFILES)/rules.make
|
|||
# The GSDoc files that needs pre-processing are in xxx_GSDOC_FILES
|
||||
# The LaTeX files that needs pre-processing are in xxx_LATEX_FILES
|
||||
#
|
||||
# Javadoc support:
|
||||
# The Java files that needs documenting using javadoc are in
|
||||
# xxx_JAVADOC_FILES (could contain both packages, as gnu.gnustep.base,
|
||||
# and standalone classes, as gnu.gnustep.base.NSArray.java)
|
||||
# The sourcepath to the Java classes source code in in xxx_JAVADOC_SOURCEPATH
|
||||
# (it can contain more than one path, as CLASSPATH or LD_LIBRARY_PATH do).
|
||||
# Flags for javadoc (eg, -public) are in xxx_JAVADOC_FLAGS
|
||||
#
|
||||
# The installation directory is in the xxx_DOC_INSTALL_DIR variable
|
||||
# (eg, Gui_DOC_INSTALL_DIR = Developer/Gui/Reference
|
||||
# Things should be installed under `Developer/YourProjectName' or
|
||||
# `User/YourProjectName')
|
||||
# `User/YourProjectName' - for Javadoc, use `Developer/Java/YourProjectName')
|
||||
#
|
||||
# Where xxx is the name of the document
|
||||
#
|
||||
|
@ -184,6 +192,27 @@ internal-doc-all:: after-$(TARGET)-all after-all
|
|||
|
||||
endif # LATEX_FILES
|
||||
|
||||
#
|
||||
# Documentation generated by javadoc
|
||||
#
|
||||
ifneq ($(JAVADOC_FILES),)
|
||||
|
||||
internal-doc-all:: before-$(TARGET)-all \
|
||||
$(INTERNAL_doc_NAME)/index.html \
|
||||
after-$(TARGET)-all
|
||||
|
||||
ifeq ($(JAVADOC_SOURCEPATH),)
|
||||
INTERNAL_JAVADOCFLAGS = -sourcepath ./
|
||||
else
|
||||
INTERNAL_JAVADOCFLAGS = -sourcepath ./:$(strip $(JAVADOC_SOURCEPATH))
|
||||
endif
|
||||
|
||||
$(INTERNAL_doc_NAME)/index.html:
|
||||
$(MKDIRS) $(INTERNAL_doc_NAME); \
|
||||
$(JAVADOC) $(ALL_JAVADOCFLAGS) $(JAVADOC_FILES) -d $(INTERNAL_doc_NAME)
|
||||
|
||||
endif # GSDOC_FILES
|
||||
|
||||
#
|
||||
# Install and uninstall targets
|
||||
#
|
||||
|
@ -257,6 +286,21 @@ internal-doc-uninstall::
|
|||
endif # LATEX2HTML
|
||||
endif # LATEX_FILES
|
||||
|
||||
#
|
||||
# Javadoc installation
|
||||
#
|
||||
ifneq ($(JAVADOC_FILES),)
|
||||
|
||||
internal-doc-install::
|
||||
rm -rf $(GNUSTEP_DOCUMENTATION)/$(DOC_INSTALL_DIR)/$(INTERNAL_doc_NAME)
|
||||
$(TAR) cf - $(INTERNAL_doc_NAME) | \
|
||||
(cd $(GNUSTEP_DOCUMENTATION)/$(DOC_INSTALL_DIR); $(TAR) xf -)
|
||||
|
||||
internal-doc-uninstall::
|
||||
-rm -f $(GNUSTEP_DOCUMENTATION)/$(DOC_INSTALL_DIR)/$(INTERNAL_doc_NAME)
|
||||
|
||||
endif # JAVADOC_FILES
|
||||
|
||||
#
|
||||
# text file installation
|
||||
#
|
||||
|
@ -309,6 +353,13 @@ ifneq ($(GSDOC_FILES),)
|
|||
done
|
||||
endif
|
||||
|
||||
ifneq ($(JAVADOC_FILES),)
|
||||
|
||||
internal-doc-distclean::
|
||||
rm -Rf $(INTERNAL_doc_NAME)
|
||||
|
||||
endif # JAVADOC_FILES
|
||||
|
||||
ifneq ($(LATEX_FILES),)
|
||||
|
||||
internal-doc-distclean::
|
||||
|
|
Loading…
Reference in a new issue