diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-02-03 22:39:09 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-02-03 22:39:09 +0100 |
commit | 6c315af823ecda0af638ec317140c95dfc56ee28 (patch) | |
tree | b8e9721610676d3a222e5ee49f66543f2abc89f1 /mk/macros.mk | |
parent | b2cc11f5b72f6bec64350401627cb7a20e06f38e (diff) | |
download | embtoolkit-6c315af823ecda0af638ec317140c95dfc56ee28.tar.gz embtoolkit-6c315af823ecda0af638ec317140c95dfc56ee28.tar.bz2 embtoolkit-6c315af823ecda0af638ec317140c95dfc56ee28.tar.xz |
Embtk: generic macros: handle /etc directory
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/macros.mk')
-rw-r--r-- | mk/macros.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index eb00f12..f814615 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -266,7 +266,8 @@ define EMBTK_CONFIGURE_PKG $(CONFIG_SHELL) $($(1)_SRC_DIR)/configure \ --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ --target=$(STRICT_GNU_TARGET) --libdir=/usr/$(LIBDIR) \ - --prefix=/usr --disable-rpath $($(1)_CONFIGURE_OPTS) + --prefix=/usr --sysconfdir=/etc --disable-rpath \ + $($(1)_CONFIGURE_OPTS) @touch $($(1)_BUILD_DIR)/.configured $(call EMBTK_KILL_LT_RPATH,"$($(1)_BUILD_DIR)") endef @@ -368,6 +369,9 @@ endef # define EMBTK_CLEANUP_PKG $(call EMBTK_GENERIC_MESSAGE,"Cleanup $($(1)_NAME)...") + @-if [ "x$($(1)_ETC)" != "x" ]; then \ + cd $(SYSROOT)/etc; rm -rf $($(1)_ETC); \ + fi @-if [ "x$($(1)_BINS)" != "x" ]; then \ cd $(SYSROOT)/usr/bin; rm -rf $($(1)_BINS); \ fi |