summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-26 15:39:50 +0100
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-12-26 15:39:50 +0100
commit4629a433e507775bc848b8bd7936e9d0fd3e9f0e (patch)
tree974e78351c52069a66d0b143eeeba776909c4589
parent133a77c381d893f294cac396cfee1a4e2c79d4d9 (diff)
downloadembtoolkit-4629a433e507775bc848b8bd7936e9d0fd3e9f0e.tar.gz
embtoolkit-4629a433e507775bc848b8bd7936e9d0fd3e9f0e.tar.bz2
embtoolkit-4629a433e507775bc848b8bd7936e9d0fd3e9f0e.tar.xz
Packages: Improve directfb install by creating .special target
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--packages/graphics/directfb/directfb.mk22
1 files changed, 14 insertions, 8 deletions
diff --git a/packages/graphics/directfb/directfb.mk b/packages/graphics/directfb/directfb.mk
index 7f6245a..cf0a754 100644
--- a/packages/graphics/directfb/directfb.mk
+++ b/packages/graphics/directfb/directfb.mk
@@ -42,7 +42,8 @@ FREETYPE_LIBS_FLAGS := "-L$(ROOTFS)/usr/lib -lfreetype"
endif
FREETYPE_CFLAGS_FLAGS := "-I$(SYSROOT)/usr/include/freetype2"
-directfb_install: $(DIRECTFB_BUILD_DIR)/.installed
+directfb_install: $(DIRECTFB_BUILD_DIR)/.installed \
+ $(DIRECTFB_BUILD_DIR)/.special
$(DIRECTFB_BUILD_DIR)/.installed: libpng_install freetype_install \
libjpeg_install download_directfb \
@@ -54,13 +55,6 @@ $(DIRECTFB_BUILD_DIR)/.installed: libpng_install freetype_install \
$(Q)$(MAKE) libtool_files_adapt
$(Q)$(MAKE) pkgconfig_files_adapt
$(Q)$(MAKE) $(DIRECTFB_BUILD_DIR)/.patchlibtool
- $(Q)-cp $(DIRECTFB_BUILD_DIR)/fb.modes $(ROOTFS)/etc/
-ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y)
- $(Q)-cp -R $(SYSROOT)/usr/lib32/directfb-*-* $(ROOTFS)/usr/lib32
- $(Q)-cp -R $(SYSROOT)/usr/lib/directfb-*-* $(ROOTFS)/usr/lib
-else
- $(Q)-cp -R $(SYSROOT)/usr/lib/directfb-*-* $(ROOTFS)/usr/lib
-endif
@touch $@
download_directfb:
@@ -139,6 +133,18 @@ else
mv libdirectfb.la.new $(SYSROOT)/usr/lib/libdirectfb.la
endif
+.PHONY: $(DIRECTFB_BUILD_DIR)/.special directfb_clean
+
+$(DIRECTFB_BUILD_DIR)/.special:
+ $(Q)-cp $(DIRECTFB_BUILD_DIR)/fb.modes $(ROOTFS)/etc/
+ifeq ($(CONFIG_EMBTK_64BITS_FS_COMPAT32),y)
+ $(Q)-cp -R $(SYSROOT)/usr/lib32/directfb-*-* $(ROOTFS)/usr/lib32
+ $(Q)-cp -R $(SYSROOT)/usr/lib/directfb-*-* $(ROOTFS)/usr/lib
+else
+ $(Q)-cp -R $(SYSROOT)/usr/lib/directfb-*-* $(ROOTFS)/usr/lib
+endif
+ @touch $@
+
directfb_clean:
$(call EMBTK_GENERIC_MESSAGE,"cleanup directfb-$(DIRECTFB_VERSION)...")
$(Q)-cd $(SYSROOT)/usr/bin; rm -rf $(DIRECTFB_BINS)