+2006-11-27 Niels Möller <niels@s3.kth.se>
+
+ * tools/Makefile.in (install): Use MKDIR_P to create installation
+ directory. Install only one file at a time.
+
+ * Makefile.in (MKDIR_P): Use MKDIR_P for creating installation
+ directories.
+
+ * configure.ac: Use AC_PROG_MKDIR_P.
+
2006-11-24 Niels Möller <nisse@lysator.liu.se>
* testsuite/yarrow-test.c (test_main): Use gold-bug.txt as input
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = $(INSTALL_PROGRAM) -s
+MKDIR_P = @MKDIR_P@
SUBDIRS = tools testsuite examples
# Installation
# FIXME: Use mkinstalldirs.
install-here: install-info install-headers libnettle.a $(SHLIBINSTALL)
- [ -d $(DESTDIR)$(libdir) ] || mkdir $(DESTDIR)$(libdir)
+ $(MKDIR_P) $(DESTDIR)$(libdir)
$(INSTALL_DATA) libnettle.a $(DESTDIR)$(libdir)
install-shared: $(SHLIBFORLINK)
- [ -d $(DESTDIR)$(libdir) ] || mkdir $(DESTDIR)$(libdir)
+ $(MKDIR_P) $(DESTDIR)$(libdir)
$(INSTALL_PROGRAM) $(SHLIBFORLINK) $(DESTDIR)$(libdir)/$(SHLIBFILE)
[ -z "$(SHLIBSONAME)" ] \
|| (cd $(DESTDIR)$(libdir) \
# friends for ordinary explicit rules.
install-info: nettle.info
- [ -d $(DESTDIR)$(infodir) ] || mkdir $(DESTDIR)$(infodir)
+ $(MKDIR_P) $(DESTDIR)$(infodir)
f=nettle.info ; \
[ -f $$f ] || f="$(srcdir)/$$f" ; \
$(INSTALL_DATA) "$$f" $(DESTDIR)$(infodir) ; \
# NOTE: I'd like to use $^, but that's a GNU extension. $? should be
# more portable, and equivalent for phony targets.
install-headers: $(INSTALL_HEADERS)
- [ -d $(DESTDIR)$(includedir) ] || mkdir $(DESTDIR)$(includedir)
- [ -d $(DESTDIR)$(includedir)/nettle ] || mkdir $(DESTDIR)$(includedir)/nettle
+ $(MKDIR_P) $(DESTDIR)$(includedir)/nettle
for f in $(INSTALL_HEADERS) ; do \
if [ -f "$$f" ] ; then \
$(INSTALL_DATA) "$$f" $(DESTDIR)$(includedir)/nettle ; \