summaryrefslogtreecommitdiffstats
path: root/package/at/at.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 08:12:15 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 08:12:15 +0000
commit1ed4094d615a7684cfff40b65200c415ac695955 (patch)
tree6e7951f62bf182aca77129ec4f565cf964535984 /package/at/at.mk
parent06cc62f9cfbe43e9d31a07667a6af905b5f34a42 (diff)
downloadbuildroot-novena-1ed4094d615a7684cfff40b65200c415ac695955.tar.gz
buildroot-novena-1ed4094d615a7684cfff40b65200c415ac695955.zip
Get rid of repeated rebuild of 'at'
Diffstat (limited to 'package/at/at.mk')
-rw-r--r--package/at/at.mk15
1 files changed, 7 insertions, 8 deletions
diff --git a/package/at/at.mk b/package/at/at.mk
index fa960aecf..ee9e32aa6 100644
--- a/package/at/at.mk
+++ b/package/at/at.mk
@@ -8,8 +8,8 @@ AT_SOURCE:=at_$(AT_VERSION).tar.gz
AT_SITE:=http://ftp.debian.org/debian/pool/main/a/at
AT_DIR:=$(BUILD_DIR)/at-$(AT_VERSION)
AT_CAT:=$(ZCAT)
-AT_TARGET_BINARY:=usr/bin/at
-AT_BINARY:=at
+AT_TARGET_SCRIPT:=etc/init.d/S99at
+AT_BINARY:=.at
$(DL_DIR)/$(AT_SOURCE):
$(WGET) -P $(DL_DIR) $(AT_SITE)/$(AT_SOURCE)
@@ -43,22 +43,21 @@ $(AT_DIR)/.configured: $(AT_DIR)/.unpacked
$(AT_DIR)/$(AT_BINARY): $(AT_DIR)/.configured
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(AT_DIR)
- touch -c $(AT_DIR)/$(AT_BINARY)
+ touch $@
-$(TARGET_DIR)/$(AT_TARGET_BINARY): $(AT_DIR)/$(AT_BINARY)
+$(TARGET_DIR)/$(AT_TARGET_SCRIPT): $(AT_DIR)/$(AT_BINARY)
# Use fakeroot to pretend to do 'make install' as root
echo '$(MAKE) DAEMON_USERNAME=root DAEMON_GROUPNAME=root ' \
'$(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(AT_DIR) install' \
> $(STAGING_DIR)/.fakeroot.at
echo 'rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/doc/at' >> $(STAGING_DIR)/.fakeroot.at
- $(INSTALL) -m 0755 -D $(AT_DIR)/debian/rc $(TARGET_DIR)/etc/init.d/S99at
- touch -c $(TARGET_DIR)/$(AT_TARGET_BINARY)
+ $(INSTALL) -m 0755 -D $(AT_DIR)/debian/rc $(TARGET_DIR)/$(AT_TARGET_SCRIPT)
-at: uclibc host-fakeroot $(TARGET_DIR)/$(AT_TARGET_BINARY)
+at: uclibc host-fakeroot $(TARGET_DIR)/$(AT_TARGET_SCRIPT)
at-clean:
-$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(AT_DIR) uninstall
- rm -f $(TARGET_DIR)/$(AT_TARGET_BINARY) $(TARGET_DIR)/etc/init.d/S99at
+ rm -f $(TARGET_DIR)/$(AT_TARGET_SCRIPT) $(TARGET_DIR)/etc/init.d/S99at
-$(MAKE) -C $(AT_DIR) clean
at-dirclean: