aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 09:42:55 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 09:46:02 -0300
commite233b943d1a88f325850d35f482408e552c3f94c (patch)
tree5d2684f7900cdf0a206b1f703baf42b3edbe7d1b
parentd1f04773b9796a8c107d0d3c0a68f8fef9f043d0 (diff)
Start providing the Makefile.clean as makefile
This way, if someone just pull from the tree and type make, it will generate the configure file. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6738ba5..a545042 100644
--- a/Makefile
+++ b/Makefile
@@ -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