]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
dist.mk: Create directories with $INSTALL
authorAlejandro Colomar <alx@kernel.org>
Sat, 22 Apr 2023 23:02:43 +0000 (01:02 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 22 Apr 2023 23:03:13 +0000 (01:03 +0200)
Other directories in $builddir are created with $MKDIR, but since these
should be as if installed, it makes sense to use the same command as
when installing.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/dist.mk

index 1570c1fd54050082a78199eaeba7c5df9abf7536..e10294f1eaa5b8e43d41b1ebbf088df3e20d1d29 100644 (file)
@@ -37,6 +37,11 @@ compression := bz2 gz lz xz
 dist        := $(foreach x,$(compression),dist-$(x))
 
 
+$(builddir)/dist/%/:
+       +$(info INSTALL $@)
+       +$(INSTALL_DIR) $@
+
+
 $(_DISTPAGES): $(_DISTDIR)/man%: $(srcdir)/man% | $$(@D)/
        $(info INSTALL  $@)
        $(INSTALL_DATA) -T $< $@