aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 12:37:16 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 12:38:21 (GMT)
commit98eb0a94851045a1f0b7f49613d462926166019d (patch)
tree39ce0eee213eca3d11adfa9efb90ac8bebd9b402
parentfee2182b5febda046c8d60f8b873906b134d2735 (diff)
Use the distclean Makefile
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6738ba5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+
+# passed to configure
+prefix = /usr/local
+
+# arch name -- for build directory
+arch := $(shell echo "arch-`uname -m`-`uname -s`" | tr "A-Z" "a-z")
+
+# targets
+build all install: $(arch)/Makefile
+ $(MAKE) -C $(arch) $@
+
+clean distclean:
+ -test -d "$(arch)" && rm -rf "$(arch)"
+
+tarball rpm dsc debs pbuild release snapshot snap:
+ ./configure
+ $(MAKE) $@
+
+$(arch)/Makefile:
+ mkdir -p $(arch)
+ (cd $(arch); ../configure \
+ --prefix=$(prefix) )

Privacy Policy