# Definitions for:
#
# $Id: SysDefs 615 2010-09-30 15:49:42Z florenz@TU-BERLIN.DE $


# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Fundamental system definitions (please fill out)

include ../../src/om/specs/Specs.basic

# Name of the system

NODENAME = opal2x


# The names of the direct subdirectories of this node
# also to be built. NOTE that these are not the OCS subsystems
# but rather reflect the hierarchy of the project tree.

SUBNODES  =


# Sources of the system included into a release

TEXS = dokopal2x.tex opal2x.tex scanner.tex symbols.tex tables.tex trouble.tex

STYLES = scanner.sty basicprog.sty programsymbols.sty \
	 symbols.sty opal2x.sty scanner.sty tubprogram.sty \
	 progfont.sty slang.sty


SOURCES = SysDefs $(STYLES) README

dokopal2x.tex: opal2x.tex scanner.tex symbols.tex tables.tex trouble.tex $(STYLES)

# Manuals attached to this system included into a release

MANUALS =


# All components of this system. Add here auxiliary
# files which shall not be included into a release.

COMPONENTS = $(SOURCES) $(MANUALS) $(TEXS)

# Include this statement to deactivate the derived object cache.
#.BPOOL:


# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Fundamental system rules (please fill out)


# The default target

_default: all


# The action on this node associated with 'all'

_all: dokopal2x.pdf

%.pdf: %.tex
	$(LATEX) $<
	$(LATEX) $<
	$(DVIPDFM) -o $@ $*.dvi
	$(RM) -f $*.dvi

# The action on this node associated with 'check'

_check: $(TEXS) $(STYLES)

# The action on this node associated with 'clean'

_clean:
	$(RM) -f *.aux *.log *.toc *.dvi *.ps *.pdf


# The action associated with 'install'

_install: $(INSTALLDOCPATH)/pdf/dokopal2x.pdf $(INSTALLDOCPATH)/opal2x/opal2x.sty

$(INSTALLDOCPATH)/pdf/dokopal2x.pdf: dokopal2x.pdf
	@if [ -z $(INSTALLDOCPATH) ] ; \
	then $(ECHO) "You must define the variable INSTALLDOCPATH and INSTALLDOCFLAGS."; \
	else $(ECHO) "Installing document dokopal2x.pdf in $(INSTALLDOCPATH)/pdf"; \
	     $(OCSOM)/etc/xinstall $(INSTALLDOCFLAGS) dokopal2x.pdf \
                  $(INSTALLDOCPATH)/pdf || exit 1; \
        fi

$(INSTALLDOCPATH)/opal2x/opal2x.sty: $(STYLES)
	@if [ -z $(INSTALLDOCPATH) ] ; \
	then $(ECHO) "You must define the variable INSTALLDOCPATH and INSTALLDOCFLAGS."; \
	else $(ECHO) "Installing opal2x styles in $(INSTALLDOCPATH)/opal2x"; \
	     $(OCSOM)/etc/xinstall $(INSTALLDOCFLAGS) $(STYLES) README\
                  $(INSTALLDOCPATH)/opal2x || exit 1; \
        fi

# A definitions and rules file which shall be build and afterwards recursivly
# included with each run of shape. If LOCALDEFS is defined, you must
# also give a rule how to create it.

LOCALDEFS =

#include $(LOCALDEFS)
#$(LOCALDEFS):


# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Release management definitions (fill out if required)

# The file which carries the `lastrelease' and `inrelease' attributes
#   If this variable is defined, the project tree starting at this
#   node is considered to be a subrelease.

VERSIONFILE =

# Additional files which shall get the attributes
# (can be located in other systems)

AUXVERSIONFILES =


# Path to this node relative to the root of the release tree

RELEASENODEPATH =

# Derived objects which shall be included into the release

RELEASEOBJECTS =


# Path to the boot area for this node relative to the release tree

RELEASEBOOTPATH =

# Sources which shall be included into the boot area of a release

BOOTSOURCES =

# Derived objects which shall be included into the boot area of a release

BOOTOBJECTS =


# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Release management rules (fill out if required)


# The action to derive the release objects

_releaseobjects:

# The action to derive the boot objects

_bootobjects:


# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Include generic rules (do not change)

include $(OMLIBPATH)/GlobalRules


### Local Variables:
### mode: makefile
### End:
