aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 12:42:01 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 12:46:02 (GMT)
commitd1f04773b9796a8c107d0d3c0a68f8fef9f043d0 (patch)
tree7f78032e5d2885ef7260ade0707fded071b276e6
parent11c8afc8fc3998668a09147c0c025cd4f348e7ae (diff)
Automatically create the configure tool if needed
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Makefile.clean9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.clean b/Makefile.clean
index 6738ba5..a545042 100644
--- a/Makefile.clean
+++ b/Makefile.clean
@@ -6,17 +6,20 @@ prefix = /usr/local
arch := $(shell echo "arch-`uname -m`-`uname -s`" | tr "A-Z" "a-z")
# targets
-build all install: $(arch)/Makefile
+build all install: $(arch)/Makefile configure
$(MAKE) -C $(arch) $@
clean distclean:
-test -d "$(arch)" && rm -rf "$(arch)"
-tarball rpm dsc debs pbuild release snapshot snap:
+configure:
+ autoconf
+
+tarball rpm dsc debs pbuild release snapshot snap: configure
./configure
$(MAKE) $@
-$(arch)/Makefile:
+$(arch)/Makefile: configure
mkdir -p $(arch)
(cd $(arch); ../configure \
--prefix=$(prefix) )

Privacy Policy