diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-16 19:03:46 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-07-16 19:03:46 +0000 |
commit | 739c51d175bb81204e3b30856bebd9013391b036 (patch) | |
tree | d201bcb6d97094894a7900ceacd5c069bd9f7644 /package | |
parent | ce01a666dc6027b6696442526fb0a217457a2a79 (diff) | |
download | buildroot-novena-739c51d175bb81204e3b30856bebd9013391b036.tar.gz buildroot-novena-739c51d175bb81204e3b30856bebd9013391b036.zip |
Cleanup of libcgi
Diffstat (limited to 'package')
-rw-r--r-- | package/libcgi/libcgi.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/package/libcgi/libcgi.mk b/package/libcgi/libcgi.mk index 0253ccc19..0ec0c6aec 100644 --- a/package/libcgi/libcgi.mk +++ b/package/libcgi/libcgi.mk @@ -8,7 +8,8 @@ LIBCGI_SOURCE:=libcgi-$(LIBCGI_VERSION).tar.gz LIBCGI_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi LIBCGI_DIR:=$(BUILD_DIR)/libcgi-$(LIBCGI_VERSION) LIBCGI_LIBRARY:=src/libcgi.so -LIBCGI_TARGET_LIBRARY:=usr/lib/libcgi.so +LIBCGI_DESTDIR:=usr/lib +LIBCGI_TARGET_LIBRARY=$(LIBCGI_DESTDIR)/libcgi.so $(DL_DIR)/$(LIBCGI_SOURCE): $(WGET) -P $(DL_DIR) $(LIBCGI_SITE)/$(LIBCGI_SOURCE) @@ -31,7 +32,7 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source --bindir=/usr/bin \ --sbindir=/usr/sbin \ --libdir=/lib \ - --libexecdir=/usr/lib \ + --libexecdir=/$(LIBCGI_DESTDIR) \ --sysconfdir=/etc \ --datadir=/usr/share \ --localstatedir=/var \ @@ -44,19 +45,19 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source $(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured $(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR) -$(STAGING_DIR)/usr/lib/libcgi.so: $(LIBCGI_DIR)/$(LIBCGI_LIBRARY) +$(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY): $(LIBCGI_DIR)/$(LIBCGI_LIBRARY) $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGI_DIR) install - touch -c $(STAGING_DIR)/usr/lib/libcgi.so + touch -c $@ $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY) - cp -dpf $(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY)* $(TARGET_DIR)/usr/lib/ + cp -dpf $<* $(TARGET_DIR)/$(LIBCGI_DESTDIR) libcgi: uclibc $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY) libcgi-source: $(DL_DIR)/$(LIBCGI_SOURCE) libcgi-clean: - rm $(TARGET_DIR)/usr/lib/libcgi.so* + rm -f $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY)* -$(MAKE) -C $(LIBCGI_DIR) clean libcgi-dirclean: @@ -71,4 +72,3 @@ libcgi-dirclean: ifeq ($(strip $(BR2_PACKAGE_LIBCGI)),y) TARGETS+=libcgi endif - |