aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 64ee2902a14d57b1536a364d042c4bbeedbb512e (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

-include config.mk

PINGU_VERSION := $(shell \
	if [ -d .git ]; then \
		git describe --long; \
	else \
		echo $(PACKAGE_VERSION); \
	fi)

export PINGU_VERSION

SUBDIRS := src

ifdef ENABLE_DOC
SUBDIRS += doc
endif

all: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

install clean:
	for dir in $(SUBDIRS); do \
		$(MAKE) -C $$dir $@ || break; \
	done

.PHONY: $(SUBDIRS) all install clean