-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add clean and coverity targets for make
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
# Do nothing, for now. | ||
|
||
all: | ||
|
||
clean: | ||
|