Skip to content

Commit aee355d

Browse files
committed
Don't include export/ in DIRS if clightgen is not built
Also: remove dependency `depend1: export/Clightdefs.v`. It is redundant if `clightgen` is built, and useless if not. Fixes: #533 Closes: #532
1 parent 6da3547 commit aee355d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ else
2828
ARCHDIRS=$(ARCH)_$(BITSIZE) $(ARCH)
2929
endif
3030

31-
DIRS := lib common $(ARCHDIRS) backend cfrontend driver export cparser
31+
DIRS := lib common $(ARCHDIRS) backend cfrontend driver cparser
32+
33+
ifeq ($(CLIGHTGEN),true)
34+
DIRS += export
35+
endif
3236

3337
COQINCLUDES := $(foreach d, $(DIRS), -R $(d) compcert.$(d))
3438

@@ -339,7 +343,7 @@ cparser/Parser.v: cparser/Parser.vy
339343

340344
depend: $(GENERATED) depend1
341345

342-
depend1: $(FILES) export/Clightdefs.v
346+
depend1: $(FILES)
343347
@echo "Analyzing Coq dependencies"
344348
@$(COQDEP) $^ > .depend
345349

0 commit comments

Comments
 (0)