summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-06-29 18:07:45 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-06-29 18:07:45 +0000
commit48a501324b99668a3a19ec18b6ba80c10adad348 (patch)
treed27676def9b0883f5d4b497ca2ca6cc1529309d4
parent32b3c7143f2b18567590ffe3173202ce62e6fa31 (diff)
downloadbuildsystem-48a501324b99668a3a19ec18b6ba80c10adad348.tar.gz
buildsystem-48a501324b99668a3a19ec18b6ba80c10adad348.tar.bz2
Makefile for installing the shared build system stuff
svn path=/trunk/tools/buildsystem/; revision=13995
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1cee5bb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+all: usage
+
+usage:
+ @echo "make install PREFIX=/somewhere"
+ @echo ""
+ @echo "Will install the makefiles, and test tools into $PREFIX/share/netsurf-buildsystem"
+ @echo ""
+ @echo "Which is where the libraries etc look for it."
+
+PREFIX?=/opt/netsurf
+
+BASE=$(PREFIX)/share/netsurf-buildsystem
+
+MAKEFILES := $(patsubst %,Makefile.%, \
+ top tools subdir pkgconfig \
+ clang gcc norcroft open64 \
+)
+
+TESTTOOLS := testrunner.pl
+
+install:
+ mkdir -p $(BASE)/makefiles $(BASE)/testtools
+ for M in $(MAKEFILES); do \
+ cp makefiles/$$M $(BASE)/makefiles/; \
+ done
+ for T in $(TESTTOOLS); do \
+ cp testtools/$$T $(BASE)/testtools/; \
+ done
+