forked from cesanta/fossa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (22 loc) · 783 Bytes
/
Makefile
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
# Copyright (c) 2014 Cesanta Software
# All rights reserved
# Note: order is important
SUBDIRS = src docs test examples apps
.PHONY: all $(SUBDIRS)
all: $(SUBDIRS)
$(SUBDIRS): %:
@$(MAKE) -C $@
# full test suite, requiring more dependencies on the dev's machine
alltests: all
@$(MAKE) -C test docker valgrind cpplint
difftest:
@TMP=`mktemp -t checkout-diff.XXXXXX`; \
git diff docs/index.html fossa.c fossa.h >$$TMP ; \
if [ -s "$$TMP" ]; then echo found diffs in checkout:; git status -s; exit 1; fi; \
rm $$TMP
update-frozen:
git subtree pull --prefix deps/frozen https://github.com/cesanta/frozen master --squash
setup-hooks:
for i in .hooks/*; do ln -s ../../.hooks/$$(basename $$i) .git/hooks; done
clean:
@for i in $(SUBDIRS); do $(MAKE) -C $$i clean ; done