diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-13 23:42:49 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-07-13 23:43:22 +0200 |
commit | c368ffe5c38bf183902594ed46c39185624ea424 (patch) | |
tree | 036fbedd9e0dbf35530ea4ed50124d75bcac2315 | |
parent | 56402a43704866d0ec237b58652450230fcdc574 (diff) | |
download | embtoolkit-c368ffe5c38bf183902594ed46c39185624ea424.tar.gz embtoolkit-c368ffe5c38bf183902594ed46c39185624ea424.tar.bz2 embtoolkit-c368ffe5c38bf183902594ed46c39185624ea424.tar.xz |
Build system: generic macros: add macros to know if a package is already decompressed/patched/configured/installed
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | mk/macros.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index 2f3d2fb..417487a 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -199,6 +199,30 @@ PKGV=$(strip $(shell echo $(1) | tr a-z A-Z)) embtk_get_pkgversion = $(subst ",,$(strip $(CONFIG_EMBTK_$(PKGV)_VERSION_STRING))) # +# A macro to test if a package is already decompressed. +# It returns y if decompressed and nothing if not. +# +__embtk_pkg_decompressed-y = $(shell test -e $($(PKGV)_SRC_DIR)/.decompressed && echo y) + +# +# A macro to test if a package is already patched. +# It returns y if patched and nothing if not. +# +__embtk_pkg_patched-y = $(shell test -e $($(PKGV)_SRC_DIR)/.patched && echo y) + +# +# A macro to test if a package is already configured using autotools configure +# script. It returns y if configured and nothing if not. +# +__embtk_pkg_configured-y = $(shell test -e $($(PKGV)_BUILD_DIR)/.configured && echo y) + +# +# A macro to test if a package is already installed. +# It returns y if installed and nothing if not. +# +__embtk_pkg_installed-y = $(shell test -e $($(PKGV)_BUILD_DIR)/.installed && echo y) + +# # A macro which runs configure script (conpatible with autotools configure) # for a package and sets environment variables correctly. # Usage: |