diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-02-15 10:23:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-02-15 10:23:19 +0000 |
commit | befb097e10cb7627b385ad95752f7cc04bea1af6 (patch) | |
tree | 3685724f67fb0785e653e9ee904be25f54c90494 /make/tar.mk | |
parent | a50c4277def16def5713dfdfc7a08238ffe61c06 (diff) | |
download | buildroot-novena-befb097e10cb7627b385ad95752f7cc04bea1af6.tar.gz buildroot-novena-befb097e10cb7627b385ad95752f7cc04bea1af6.zip |
Fix a few problems noticed by Peter S. Mazinger
Diffstat (limited to 'make/tar.mk')
-rw-r--r-- | make/tar.mk | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/make/tar.mk b/make/tar.mk new file mode 100644 index 000000000..1e31c1082 --- /dev/null +++ b/make/tar.mk @@ -0,0 +1,56 @@ +############################################################# +# +# tar +# +############################################################# +GNUTAR_SOURCE:=tar-1.13.tar.gz +GNUTAR_SITE:=ftp://ftp.gnu.org/gnu/tar +GNUTAR_DIR:=$(BUILD_DIR)/tar-1.13 +GNUTAR_CAT:=zcat +GNUTAR_BINARY:=src/tar +GNUTAR_TARGET_BINARY:=bin/tar + +$(DL_DIR)/$(GNUTAR_SOURCE): + $(WGET) -P $(DL_DIR) $(GNUTAR_SITE)/$(GNUTAR_SOURCE) + +tar-source: $(DL_DIR)/$(GNUTAR_SOURCE) + +$(GNUTAR_DIR)/.unpacked: $(DL_DIR)/$(GNUTAR_SOURCE) + $(GNUTAR_CAT) $(DL_DIR)/$(GNUTAR_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(GNUTAR_DIR)/.unpacked + +$(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked + (cd $(GNUTAR_DIR); rm -rf config.cache; \ + PATH=$(TARGET_PATH) CC=$(TARGET_CC) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --disable-nls \ + ); + touch $(GNUTAR_DIR)/.configured + +$(GNUTAR_DIR)/$(GNUTAR_BINARY): $(GNUTAR_DIR)/.configured + $(MAKE) -C $(GNUTAR_DIR) + +$(TARGET_DIR)/$(GNUTAR_TARGET_BINARY): $(GNUTAR_DIR)/$(GNUTAR_BINARY) + rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) + cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) + +tar: uclibc $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) + +tar-clean: + $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUTAR_DIR) uninstall + -$(MAKE) -C $(GNUTAR_DIR) clean + +tar-dirclean: + rm -rf $(GNUTAR_DIR) + |