aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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