projects
/
cc0
/
argeo-build.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6122d55
)
Copy MANIFESTs by default
author
Mathieu Baudier <mbaudier@argeo.org>
Thu, 16 Mar 2023 08:30:12 +0000
(09:30 +0100)
committer
Mathieu Baudier <mbaudier@argeo.org>
Thu, 16 Mar 2023 08:30:12 +0000
(09:30 +0100)
osgi.mk
patch
|
blob
|
history
diff --git
a/osgi.mk
b/osgi.mk
index 6f9214409bfaa0933123f7b4744773415eadf432..1a752b0383522acbd0f0cbb5c15032c135098d3f 100644
(file)
--- a/
osgi.mk
+++ b/
osgi.mk
@@
-40,6
+40,9
@@
TODOS = $(foreach bundle, $(BUNDLES),$(BUILD_BASE)/$(bundle)/to-build)
.PHONY: osgi manifests javadoc
osgi: $(BUILD_BASE)/built
.PHONY: osgi manifests javadoc
osgi: $(BUILD_BASE)/built
+# copy MANIFESTs to sources
+ @mkdir -p $(foreach bundle, $(BUNDLES), $(bundle)/META-INF/);
+ @$(foreach bundle, $(BUNDLES), cp -v $(BUILD_BASE)/$(bundle)/META-INF/MANIFEST.MF $(bundle)/META-INF/MANIFEST.MF;)
# Actual build (compilation + bundle packaging)
$(BUILD_BASE)/built : BUNDLES_TO_BUILD = $(subst $(abspath $(BUILD_BASE))/,, $(subst to-build,, $?))
# Actual build (compilation + bundle packaging)
$(BUILD_BASE)/built : BUNDLES_TO_BUILD = $(subst $(abspath $(BUILD_BASE))/,, $(subst to-build,, $?))
@@
-54,9
+57,8
@@
$(BUILD_BASE)/%/to-build : $$(shell find % -type f -not -path 'bin/*' -not -path
@touch $@
# Local manifests
@touch $@
# Local manifests
-manifests : osgi
- @mkdir -p $(foreach bundle, $(BUNDLES), $(bundle)/META-INF/);
- @$(foreach bundle, $(BUNDLES), cp -v $(BUILD_BASE)/$(bundle)/META-INF/MANIFEST.MF $(bundle)/META-INF/MANIFEST.MF;)
+clean-manifests :
+ @rm -rf $(foreach bundle, $(BUNDLES), $(bundle)/META-INF/MANIFEST.MF);
# Javadoc generation
javadoc: $(BUILD_BASE)/built
# Javadoc generation
javadoc: $(BUILD_BASE)/built