From 8a49f7c3a38fb3f50491dfe962b981e17c9716f4 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Fri, 7 Nov 2014 14:46:17 +0000 Subject: Add Doxygen to build system --- Makefile | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 250d37a..16e7c22 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,32 @@ -PREFIX = dist +PREFIX ?= $(PWD)/dist +HPATH = include/xtract -static: LIBTYPE = static -shared: LIBTYPE = shared +static: LIBRARY = static +shared: LIBRARY = shared -.PHONY: examples clean static shared install +export XTRACT_VERSION PREFIX LIBRARY + +.PHONY: examples clean static shared install doc all: static examples static shared: - @$(MAKE) -C src LIBRARY=$(LIBTYPE) + @$(MAKE) -C src examples: - @$(MAKE) -C examples + @$(MAKE) -C $@ + +doc: + @$(MAKE) -C $@ 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 + $(MAKE) -C src install + $(MAKE) -C examples install + @mkdir -p $(PREFIX)/$(HPATH) + @cp $(HPATH)/* $(PREFIX)/$(HPATH) clean: @$(MAKE) -C src clean @$(MAKE) -C examples clean + @$(RM) -r dist -- cgit v1.2.3