fix usage of COPYALL in Makefiles

Mon, 18 Dec 2023 18:54:17 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 Dec 2023 18:54:17 +0100
changeset 765
b5128bb44459
parent 764
ccbdbd088455
child 766
e59b76889f00

fix usage of COPYALL in Makefiles

docs/Makefile file | annotate | diff | comparison | revisions
src/Makefile file | annotate | diff | comparison | revisions
--- a/docs/Makefile	Mon Dec 18 18:22:53 2023 +0100
+++ b/docs/Makefile	Mon Dec 18 18:54:17 2023 +0100
@@ -36,7 +36,8 @@
 	@echo "[ API Docs Generated ]"
 
 $(docs_dir)/web/api-2.1: api-2.1 FORCE
-	$(COPYALL) $< $@
+	$(MKDIR) $@
+	$(COPYALL) $< "$@/.."
 
 $(docs_dir)/web/api: FORCE
 	cd $(src_dir); $(DOXYGEN)
--- a/src/Makefile	Mon Dec 18 18:22:53 2023 +0100
+++ b/src/Makefile	Mon Dec 18 18:54:17 2023 +0100
@@ -40,12 +40,12 @@
 	$(CC) $(LDFLAGS) -o $@ $^
 
 install: $(build_dir)/libucx_static$(STLIB_EXT) $(build_dir)/libucx$(SHLIB_EXT)
-	$(MKDIR) $(libdir) $(includedir)
+	$(MKDIR) $(libdir) $(includedir)/cx
 	$(RMFILE) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR)
 	$(RMFILE) $(libdir)/libucx$(SHLIB_EXT)
 	$(COPYFILE) $(build_dir)/libucx_static$(STLIB_EXT) $(libdir)/libucx_static$(STLIB_EXT)
 	$(COPYFILE) $(build_dir)/libucx$(SHLIB_EXT) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION)
-	$(COPYALL) $(src_dir)/src/cx $(includedir)/cx
+	$(COPYALL) $(src_dir)/src/cx $(includedir)
 	$(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR)
 	$(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(libdir)/libucx$(SHLIB_EXT)
 

mercurial