Skip to content

Commit

Permalink
add clean and coverity targets for make
Browse files Browse the repository at this point in the history
  • Loading branch information
acooks committed Jan 30, 2015
1 parent 786d3c7 commit 562d4d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
SUBDIRS = src docs
CLEANDIRS = $(SUBDIRS:%=clean-%)

.PHONY: all $(SUBDIRS)

all: $(SUBDIRS)

$(SUBDIRS): %:
echo "Making $@"
@echo "Making $@"
@$(MAKE) -C $@

update-fossa:
git subtree pull --prefix deps/fossa https://github.com/cesanta/fossa master --squash

# Remember to add the coverity bin directory to your PATH
coverity-build: $(CLEANDIRS)
cov-build --dir cov-int make src
@tar caf jittertrap-coverity-build.lzma cov-int
@echo Coverity build archive: jittertrap-coverity-build.lzma

clean: $(CLEANDIRS)
$(CLEANDIRS):
@echo "Cleaning $@"
$(MAKE) -C $(@:clean-%=%) clean
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
# Do nothing, for now.

all:

clean:

0 comments on commit 562d4d3

Please sign in to comment.