view Makefile @ 258:9fecd1eaaec1

Add Doxygen to build system
author Jamie Bullock <jamie@jamiebullock.com>
date Fri, 07 Nov 2014 14:46:17 +0000
parents 4a443da2eb65
children 559e9076489c
line wrap: on
line source

PREFIX ?= $(PWD)/dist
HPATH = include/xtract

static: LIBRARY = static
shared: LIBRARY = shared

export XTRACT_VERSION PREFIX LIBRARY

.PHONY: examples clean static shared install doc

all: static examples

static shared:
	@$(MAKE) -C src

examples:
	@$(MAKE) -C $@

doc:
	@$(MAKE) -C $@

install:
	$(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