Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export EBMC_DIR

all: hw-cbmc.dir ebmc.dir

.PHONY: clean

.PHONY: $(patsubst %, %.dir, $(DIRS))
$(patsubst %, %.dir, $(DIRS)):
## Entering $(basename $@)
$(MAKE) $(MAKEARGS) -C $(basename $@)
Expand All @@ -29,10 +28,15 @@ cprover.dir:
$(MAKE) $(MAKEARGS) -C $(CPROVER_DIR) \
CP_EXTRA_CXXFLAGS='-D"LOCAL_IREP_IDS=<$(EBMC_DIR)/hw_cbmc_irep_ids.h>"'

clean: $(patsubst %, %_clean, $(SUBDIRS))
.PHONY: clean
clean: $(patsubst %, %_clean, $(DIRS)) cprover_clean

$(patsubst %, %_clean, $(SUBDIRS)):
.PHONY: $(patsubst %, %_clean, $(DIRS))
$(patsubst %, %_clean, $(DIRS)):
if [ -e $(patsubst %_clean, %, $@)/. ] ; then \
$(MAKE) $(MAKEARGS) -C $(patsubst %_clean, %, $@) clean ; \
fi

.PHONY: cprover_clean
cprover_clean:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add cprover_clean to .PHONY.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

$(MAKE) $(MAKEARGS) -C $(CPROVER_DIR) clean