From 3dfb037f3705a74f2325e630f97f9145148fed9b Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Mon, 29 May 2017 14:56:01 -0500 Subject: [PATCH] Updated Makefile to touch configure so that it can properly depend on ARCHIVE --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7e2585c..d2ad3c8 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ export URL = http://curl.haxx.se/ BRIEF = Tool which transfers data from or to a server DESC = curl is a command line tool and library for transferring data \ with URL syntax -SNAPVER = 2 +SNAPVER = 3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') @@ -31,7 +31,7 @@ DEVROOT := $(DEV)/ROOT include /usr/share/snap/Makefile.snaplinux -$(SRCDIR)/configure: +$(SRCDIR)/configure: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ tar -jxf $(ARCHIVE); \ elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ @@ -44,6 +44,7 @@ $(SRCDIR)/configure: echo 'Unable to determine archive type'; \ exit 1; \ fi + @touch $(SRCDIR)/configure $(SRCDIR)/config.log: $(SRCDIR)/configure @cd $(SRCDIR) && \