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 | |
parent | fc4f132415391c0b5dd52072ce7e25473e06e3a9 (diff) | |
download | LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.gz LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.tar.bz2 LibXtract-dbf585ec3763e25db5c34338cbf34af9035fe40f.zip |
Add "install" target
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | examples/Makefile | 12 | ||||
-rw-r--r-- | examples/simpletest/Make.config | 2 |
3 files changed, 19 insertions, 5 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 diff --git a/examples/Makefile b/examples/Makefile index 46ef826..94ae71d 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,8 +1,14 @@ -.PHONY: simpletest clean +NAME = simpletest -simpletest: +.PHONY: $(NAME) clean + +$(NAME): @$(MAKE) -C $@ +install: + @$(MAKE) -C $(NAME) install + + clean: - @$(MAKE) -C simpletest clean + @$(MAKE) -C $(NAME) clean diff --git a/examples/simpletest/Make.config b/examples/simpletest/Make.config index 6d21ed7..9f3640a 100644 --- a/examples/simpletest/Make.config +++ b/examples/simpletest/Make.config @@ -5,5 +5,5 @@ endif LIBRARY := SUFFIX := .cpp -FLAGS += -I../../ +FLAGS += -I../../include LDFLAGS = -lxtract -L../../src $(DARWIN_LDFLAGS) |