aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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