# Copyright (C) 2021  Stephan Kreutzer
#
# This file is part of xml_to_dimgra_1, a submodule of the
# digital_publishing_workflow_tools package.
#
# xml_to_dimgra_1 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# xml_to_dimgra_1 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with xml_to_dimgra_1. If not, see <http://www.gnu.org/licenses/>.



.PHONY: all xml_to_dimgra_1 clean



all: xml_to_dimgra_1
xml_to_dimgra_1: xml_to_dimgra_1.class



InfoMessage.class: InfoMessage.java
	javac -encoding UTF-8 InfoMessage.java

ProgramTerminationException.class: ProgramTerminationException.java
	javac -encoding UTF-8 ProgramTerminationException.java

Node.class: Node.java
	javac -encoding UTF-8 Node.java

StructureStackElement.class: StructureStackElement.java
	javac -encoding UTF-8 StructureStackElement.java

StructureDefinition.class: StructureDefinition.java
	javac -encoding UTF-8 StructureDefinition.java

xml_to_dimgra_1.class: xml_to_dimgra_1.java InfoMessage.class ProgramTerminationException.class Node.class StructureStackElement.class StructureDefinition.class
	javac -encoding UTF-8 xml_to_dimgra_1.java


clean:
	rm -f xml_to_dimgra_1.class
	rm -f StructureDefinition.class
	rm -f StructureStackElement.class
	rm -f Node.class
	rm -f ProgramTerminationException.class
	rm -f InfoMessage.class
