make clean and distclean are now independent from config.mk default tip

Thu, 04 Dec 2025 18:57:54 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 04 Dec 2025 18:57:54 +0100
changeset 1538
fd948e5af26e
parent 1537
f60a73d2ad01

make clean and distclean are now independent from config.mk

fixes #769

Makefile file | annotate | diff | comparison | revisions
make/makefile.mk file | annotate | diff | comparison | revisions
--- a/Makefile	Wed Dec 03 00:01:17 2025 +0100
+++ b/Makefile	Thu Dec 04 18:57:54 2025 +0100
@@ -29,11 +29,12 @@
 dist: config.mk FORCE
 	$(MAKE) -f make/makefile.mk dist
 
-clean: config.mk FORCE
-	$(MAKE) -f make/makefile.mk clean
+clean: FORCE
+	rm -f -R dist
+	rm -f -R build
 
-distclean: config.mk FORCE
-	$(MAKE) -f make/makefile.mk distclean
+distclean: clean FORCE
+	rm -f config.mk
 
 compile: config.mk FORCE
 	$(MAKE) -f make/makefile.mk compile
--- a/make/makefile.mk	Wed Dec 03 00:01:17 2025 +0100
+++ b/make/makefile.mk	Thu Dec 04 18:57:54 2025 +0100
@@ -30,13 +30,6 @@
 	@cd $(dist_dir) && tar -czf ucx-$(VERSION).tar.gz -Hustar libucx
 	@echo "[ Dist created: $(dist_dir)/ucx-$(VERSION).tar.gz ]"
 
-clean: FORCE
-	$(RMDIR) $(dist_dir)
-	$(RMDIR) $(build_dir)
-
-distclean: clean FORCE
-	$(RMFILE) $(root_dir)/config.mk
-
 compile: static shared
 
 $(build_dir):

mercurial