mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-07 22:30:28 +00:00
Use $(MKDIR_P) instead of $(mkinstalldirs) in Makefile's
And test for "mkdir -p" using AC_PROG_MKDIR_P in "configure".
(cherry picked from commit 90062111f7
)
This commit is contained in:
parent
bb3096b0d3
commit
4286af08ce
@ -67,6 +67,7 @@ AC_PROG_AWK
|
|||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
|
AC_PROG_MKDIR_P
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
# -- Compiler Features --
|
# -- Compiler Features --
|
||||||
|
@ -54,11 +54,11 @@ maintainer-clean-local:
|
|||||||
all: $(generated_docs)
|
all: $(generated_docs)
|
||||||
|
|
||||||
install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
|
install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
|
||||||
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
$(MKDIR_P) -m 755 $(DESTDIR)$(sysconfdir)
|
||||||
@if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
@if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
|
||||||
make install-config; \
|
make install-config; \
|
||||||
fi
|
fi
|
||||||
$(mkinstalldirs) $(DESTDIR)$(docdir)
|
$(MKDIR_P) -m 755 $(DESTDIR)$(docdir)
|
||||||
for f in $(static_docs) $(toplevel_docs); do \
|
for f in $(static_docs) $(toplevel_docs); do \
|
||||||
$(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
|
$(INSTALL) -m 644 -c $(srcdir)/$$f $(DESTDIR)$(docdir)/; \
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user