mmc-utils: create mandir during install

fixes install faikure when mandir is not already created

  install -m 644 mmc.1 /usr/share/man/man1
  install: cannot create regular file '/usr/share/man/man1': No such file or directory

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/ZpxwXEKy1bAOCes_@378c8c72e398
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Rudi Heitbaum 2024-07-21 02:20:12 +00:00 committed by Ulf Hansson
parent f884bfe684
commit 123fd8b2ac

View File

@ -53,6 +53,7 @@ clean:
install: $(progs)
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(progs) $(DESTDIR)$(bindir)
$(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 644 mmc.1 $(DESTDIR)$(mandir)/man1
-include $(foreach obj,$(objects), $(dir $(obj))/.$(notdir $(obj)).d)