Skip to content

Commit 26cf015

Browse files
committed
Fix and simplify make clean
--add-gpr-path was not supported by the clean command. Remove the whole build directory instead of removing each project subdirectory. Inspired by the github issue #90 created by David SAUVAGE - AdaLabs Ltd <[email protected]>.
1 parent 55148a9 commit 26cf015

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ doc:
137137
###########
138138

139139
clean:
140-
$(PYTHON) $(SOURCE_DIR)/projects/gnatcoll_projects.gpr.py clean --add-gpr-path=local-install/share/gpr
141-
$(PYTHON) $(SOURCE_DIR)/core/gnatcoll_core.gpr.py clean --add-gpr-path=local-install/share/gpr
142-
$(PYTHON) $(SOURCE_DIR)/minimal/gnatcoll_minimal.gpr.py clean --add-gpr-path=local-install/share/gpr
140+
rm -rf local-install
143141

144142
# Let gprbuild handle parallelisation. In general, we don't support parallel
145143
# runs in this Makefile, as concurrent gprinstall processes may crash.

0 commit comments

Comments
 (0)