aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJamie Bullock <jamie@jamiebullock.com>2014-11-07 13:10:51 +0000
committerJamie Bullock <jamie@jamiebullock.com>2014-11-07 13:10:51 +0000
commitdbf585ec3763e25db5c34338cbf34af9035fe40f (patch)
treed840d0c834005e320f5d9b031e6993d3145289fd /Makefile
parentfc4f132415391c0b5dd52072ce7e25473e06e3a9 (diff)
downloadLibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.gz
LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.bz2
LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.zip
Add "install" target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ece416f..250d37a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
+PREFIX = dist
+
static: LIBTYPE = static
shared: LIBTYPE = shared
-.PHONY: examples clean static shared
+.PHONY: examples clean static shared install
all: static examples
@@ -12,6 +14,12 @@ static shared:
examples:
@$(MAKE) -C examples
+install:
+ $(MAKE) -C src install PREFIX=$(PWD)/$(PREFIX)
+ $(MAKE) -C examples install PREFIX=$(PWD)/$(PREFIX)
+ @mkdir -p $(PREFIX)/include/xtract
+ @cp include/xtract/* $(PREFIX)/include/xtract
+
clean:
@$(MAKE) -C src clean
@$(MAKE) -C examples clean