aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 16e7c22dc69f931fc27a51cbfab866ee6212d1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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