X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=osgi.mk;h=52bdba6443406c039693cb49fc232f7ac77d3ef5;hb=13abf513d6d3da1495eb4e4a6024504060a93cde;hp=85ad3c40e9935264da4acb8f02e9ead797d2dd56;hpb=1d38b1c8155f35271cf20217167eb6901df25272;p=cc0%2Fargeo-build.git diff --git a/osgi.mk b/osgi.mk index 85ad3c4..52bdba6 100644 --- a/osgi.mk +++ b/osgi.mk @@ -28,9 +28,9 @@ JAVADOC_PACKAGES ?= A2_BASE ?=/usr/share/a2 /usr/local/share/a2 $(A2_OUTPUT) # Third-party libraries -LOGGER_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp/org.argeo.tp.syslogger.$(SYSLOGGER_BRANCH).jar))) -ECJ_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.sdk/org.eclipse.jdt.core.compiler.batch.$(ECJ_BRANCH).jar))) -BNDLIB_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.sdk/biz.aQute.bndlib.$(BNDLIB_BRANCH).jar))) +LOGGER_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/log/syslogger/org.argeo.tp/org.argeo.tp.syslogger.$(SYSLOGGER_BRANCH).jar))) +ECJ_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.build/org.eclipse.jdt.core.compiler.batch.$(ECJ_BRANCH).jar))) +BNDLIB_JAR ?= $(lastword $(foreach base, $(A2_BASE), $(wildcard $(base)/org.argeo.tp.build/biz.aQute.bndlib.$(BNDLIB_BRANCH).jar))) # Internal variables ARGEO_MAKE = $(JVM) -cp $(LOGGER_JAR):$(ECJ_JAR):$(BNDLIB_JAR) $(ARGEO_BUILD_BASE)src/org/argeo/build/Make.java @@ -73,15 +73,22 @@ ifneq ($(NO_MANIFEST_COPY),true) @cp $< $@ endif -clean: - rm -rf $(BUILD_BASE) - clean-manifests : @rm -rf $(foreach bundle, $(BUNDLES), $(bundle)/META-INF/MANIFEST.MF); +osgi-install: + $(ARGEO_MAKE) \ + install --category $(A2_CATEGORY) --bundles $(BUNDLES) \ + --target $(A2_INSTALL_TARGET) + +osgi-uninstall: + $(ARGEO_MAKE) \ + uninstall --category $(A2_CATEGORY) --bundles $(BUNDLES) \ + --target $(A2_INSTALL_TARGET) + # Javadoc generation javadoc: $(BUILD_BASE)/built - $(JAVADOC) -quiet -Xmaxwarns 1 -d $(BUILD_BASE)/api --source-path $(subst $(space),$(pathsep),$(strip $(JAVADOC_SRCS))) -subpackages $(JAVADOC_PACKAGES) + $(JAVADOC) -noindex -quiet -Xmaxwarns 1 -d $(BUILD_BASE)/api --source-path $(subst $(space),$(pathsep),$(strip $(JAVADOC_SRCS))) -subpackages $(JAVADOC_PACKAGES) # Make variables used to replace spaces by a separator, typically in order to generate classpaths # for example: CLASSPATH = $(subst $(space),$(pathsep),$(strip $(JARS)))