X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=common.mk;h=891f8f8d99347247cd9242a00138f1c060142298;hb=HEAD;hp=c30d011faa8fc4750b69e07e29c33ce68cf83f68;hpb=822c389ec76d0be72ef0fc59d53a3d23737f2102;p=cc0%2Fargeo-build.git diff --git a/common.mk b/common.mk index c30d011..891f8f8 100644 --- a/common.mk +++ b/common.mk @@ -1,5 +1,5 @@ build-major=2 -build-minor=3 +build-minor=1 # Required third party libraries ECJ_MAJOR=3 @@ -14,10 +14,6 @@ A2_OUTPUT = $(SDK_BUILD_BASE)/a2 JVM ?= $(JAVA_HOME)/bin/java JAVADOC ?= $(JAVA_HOME)/bin/javadoc -# The following variables have default values which can be overriden -# A2_BASE the space-separated directories where already built a2 categories can be found -A2_BASE ?=$(A2_OUTPUT) /usr/local/share/a2 /usr/share/a2 - # GNU defaults prefix ?= /usr/local datarootdir ?= $(prefix)/share @@ -27,6 +23,10 @@ libdir ?= $(exec_prefix)/lib A2_INSTALL_TARGET ?= $(DESTDIR)$(datarootdir)/a2 A2_NATIVE_INSTALL_TARGET ?= $(DESTDIR)$(libdir)/a2 +# The following variables have default values which can be overriden +# A2_BASE the space-separated directories where already built a2 categories can be found +A2_BASE ?=$(A2_OUTPUT) $(A2_INSTALL_TARGET) $(A2_NATIVE_INSTALL_TARGET) /usr/local/share/a2 /usr/local/lib/a2 /usr/share/a2 /usr/lib/a2 + # OS-speciific KNOWN_ARCHS ?= x86_64 aarch64 TARGET_OS ?= linux @@ -38,8 +38,13 @@ PORTABLE_CATEGORIES=$(filter-out lib/%, $(CATEGORIES)) ARCH_CATEGORIES=$(filter $(TARGET_ARCH_CATEGORY_PREFIX)/%, $(CATEGORIES)) OS_CATEGORIES=$(filter-out $(foreach arch, $(KNOWN_ARCHS), $(TARGET_OS_CATEGORY_PREFIX)/$(arch)/%), $(filter $(TARGET_OS_CATEGORY_PREFIX)/%, $(CATEGORIES))) -# Utilities +## Utilities +# Install to a target directory without executable bit INSTALL=install -m644 -D --target-directory +# Always try copy-on-write +COPY=--reflink=auto +# Recursively delete directories +RMDIR=$(RM) -r # Make variables used to replace spaces by a separator, typically in order to generate classpaths # for example: CLASSPATH = $(subst $(space),$(pathsep),$(strip $(JARS)))