fix that mkdir -p needs a trailing slash on some platforms

Sun, 30 Nov 2025 14:40:39 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 14:40:39 +0100
changeset 1529
a145f47cc0a7
parent 1528
6a687a7caed8
child 1530
77cb6540d9d8

fix that mkdir -p needs a trailing slash on some platforms

make/makefile.mk file | annotate | diff | comparison | revisions
src/Makefile file | annotate | diff | comparison | revisions
tests/Makefile file | annotate | diff | comparison | revisions
--- a/make/makefile.mk	Sun Nov 30 14:33:19 2025 +0100
+++ b/make/makefile.mk	Sun Nov 30 14:40:39 2025 +0100
@@ -24,7 +24,7 @@
 include config.mk
 
 dist: FORCE
-	$(MKDIR) $(dist_dir)/libucx
+	$(MKDIR) $(dist_dir)/libucx/
 	$(COPYALL) CHANGELOG configure COPYING Doxyfile Makefile README \
 		uaplogo.png make msvc src tests $(dist_dir)/libucx/
 	@cd $(dist_dir) && tar -czf ucx-$(VERSION).tar.gz -Hustar libucx
@@ -40,7 +40,7 @@
 compile: static shared
 
 $(build_dir):
-	$(MKDIR) $@
+	$(MKDIR) $@/
 
 shared: $(build_dir) FORCE
 	@cd src && $(MAKE) OBJ_EXT=.shared.o \
--- a/src/Makefile	Sun Nov 30 14:33:19 2025 +0100
+++ b/src/Makefile	Sun Nov 30 14:40:39 2025 +0100
@@ -42,7 +42,7 @@
 		  $(build_dir)
 
 $(build_dir)/coverage:
-	$(MKDIR) $@
+	$(MKDIR) $@/
 
 $(build_dir)/%.gcda:
 	test -f "$@"
@@ -58,7 +58,7 @@
 	then : ; else cd $(root_dir); $(MAKE) compile; fi
 
 install: rebuild_if_missing
-	$(MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)/cx $(DESTDIR)$(libdir)/pkgconfig
+	$(MKDIR) $(DESTDIR)$(libdir)/ $(DESTDIR)$(includedir)/cx/ $(DESTDIR)$(pkgconfigdir)/
 	$(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR)
 	$(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT)
 	$(COPYFILE) $(build_dir)/libucx_static$(STLIB_EXT) $(DESTDIR)$(libdir)/libucx_static$(STLIB_EXT)
--- a/tests/Makefile	Sun Nov 30 14:33:19 2025 +0100
+++ b/tests/Makefile	Sun Nov 30 14:40:39 2025 +0100
@@ -49,7 +49,7 @@
 	test -f "$@"
 
 $(TEST_DIR):
-	$(MKDIR) $@
+	$(MKDIR) $@/
 
 FORCE:
 

mercurial