Skip to content

Commit a6cad1f

Browse files
authored
Merge pull request #8 from ti-uni-bielefeld/refactor_default_make_target
Split 'all_default' Make target
2 parents 851fec9 + d3f6f78 commit a6cad1f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,20 @@ ifeq ($(realpath $(build_dir)),$(realpath .))
147147
$(error build directory cannot be the project root directory)
148148
endif
149149

150-
.PHONY: all_default
151-
all_default: $(addprefix $(build_dir)/,$(default_binaries))
150+
.PHONY: default
151+
default: all_except_autotest
152152
@echo "use 'make autotest' to compile $(autotest_binaries)"
153153
@echo " requires long compilation time and may run out of memory,"
154154
@echo " compilation may take much longer on g++ than on clang++"
155155

156+
.PHONY: all_except_autotest
157+
all_except_autotest: $(addprefix $(build_dir)/,$(default_binaries))
158+
156159
.PHONY: autotest
157160
autotest: $(addprefix $(build_dir)/,$(autotest_binaries))
158161

159162
.PHONY: all
160-
all: all_default autotest
163+
all: all_except_autotest autotest
161164

162165
.PHONY: $(binaries)
163166
$(binaries): %: $(build_dir)/%

0 commit comments

Comments
 (0)