diff --git a/Makefile b/Makefile index 6e136eb07c3d6495994347b99980f90fe6de7dc2..c9f47d98150e2d47ebe172ccc96337e0b2efdc30 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #!/bin/bash # Andreas Romeyke, SLUB Dresden -# Pfad zu Java 11 +# Pfad zu Java JAVAPATH=/usr/lib/jvm/java-1.17.0-openjdk-*/bin/ JAVARELEASE=17 # Verwendete Rosetta-Version @@ -14,10 +14,6 @@ ROSETTASDKDEPOSIT=${ROSETTASDK}/../dps-sdk-projects/dps-sdk-deposit/lib ROSETTASDKPLUGINS=${ROSETTASDK}/../../bundled_plugins/ -#XALAN_JAR=$(shell find /usr/share/java/ -name "xalan2.jar" ) -#XERCES_JAR=$(shell find /usr/share/java/ -name "xercesImpl.jar") -#XML_JAR=$(shell find /usr/share/java/ -name "xml-apis.jar") - # classpath JUNITCLASSPATH=/usr/share/java/junit4.jar #SOURCESCLASSPATH=org/slub/rosetta/dps/repository/plugin/storage/nfs @@ -36,7 +32,7 @@ help: @echo "erzeugt Plugin für Rosetta von Exlibris" @echo "" @echo "Das Argument 'clean' löscht temporäre Dateien, 'help' gibt diese Hilfe aus und" - @echo "'compile' erzeugt ein JAR-File und ein Bash-Script welches das Java-Programm" + @echo "'all' erzeugt ein JAR-File und ein Bash-Script welches das Java-Programm" @echo "aufruft." jarclean: @@ -62,25 +58,6 @@ $(JAR): $(OBJS) @cp -r PLUGIN-INF/ $(BUILD) @cp -r META-INF/ $(BUILD) @cd java; find ./ -name "*.class" -print -exec cp --parents -r \{\} $(PWD)/$(BUILD) \; ; cd .. -# @cd resources; find ./ -type f -print -exec cp --parents -r \{\} $(PWD)/build \; ; cd .. - cp -a resources/ $(PWD)/$(BUILD) - -ifdef XALAN_JAR - echo "XALAN_JAR: unzip '$(XALAN_JAR)'" -# unzip $(XALAN_JAR) '*.class' -d $(BUILD); -# unzip $(XALAN_JAR) 'META-INF/services/*' -d $(BUILD) - cp --dereference $(XALAN_JAR) $(PWD)/$(BUILD)lib/ -endif -ifdef XERCES_JAR - echo "XERCES_JAR: unzip '$(XERCES_JAR)'" -# unzip $(XERCES_JAR) '*.class' -d $(BUILD); - cp --dereference $(XERCES_JAR) $(PWD)/$(BUILD)lib/ -endif -ifdef XML_JAR - echo "XML_JAR: unzip '$(XML_JAR)'" -# unzip $(XML_JAR) '*.class' -d $(BUILD); - cp --dereference $(XML_JAR) $(PWD)/$(BUILD)lib/ -endif @cd $(BUILD); ${JAVAPATH}/jar cfvM ../$@ ./* ; cd .. %.class: %.java @@ -96,4 +73,3 @@ check_prerequisites: @if [ -e $(ROSETTASDK) ]; then echo "fine :)"; else echo " not found! :("; fi .PHONY: help clean distclean jarclean test -