diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2014-11-07 13:10:51 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2014-11-07 13:10:51 +0000 |
commit | dbf585ec3763e25db5c34338cbf34af9035fe40f (patch) | |
tree | d840d0c834005e320f5d9b031e6993d3145289fd /Makefile | |
parent | fc4f132415391c0b5dd52072ce7e25473e06e3a9 (diff) | |
download | LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.gz LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.bz2 LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.zip |
Add "install" target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |