postgres.git / summary / log / commit / refs

commit    586bea6124cd64e495856f97caa612b717cd5de2
Author:   Peter Eisentraut <peter_e@gmx.net>
Date:     Sat Jan 18 04:08:22 2014 +0000
First released in: 9.4.0, 8.4.20, 9.0.16, 9.1.12, 9.2.7, 9.3.3

    Fix client-only installation
    
    The psql Makefile was not creating $(datadir) before installing
    psqlrc.sample there.
    
    In most cases, the directory would be created in some other way, but for
    the documented from-source client-only installation procedure, it could
    fail.
    
    Reported-by: Mike Blackwell <mike.blackwell@rrd.com>


src/bin/psql/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index 5b77173f59a..7878ca62589 100644 --- a/src/bin/psql/Makefile +++ b/src/bin/psql/Makefile @@ -57,7 +57,7 @@ install: all installdirs $(INSTALL_DATA) $(srcdir)/psqlrc.sample '$(DESTDIR)$(datadir)/psqlrc.sample' installdirs: - $(MKDIR_P) '$(DESTDIR)$(bindir)' + $(MKDIR_P) '$(DESTDIR)$(bindir)' '$(DESTDIR)$(datadir)' uninstall: rm -f '$(DESTDIR)$(bindir)/psql$(X)' '$(DESTDIR)$(datadir)/psqlrc.sample' [parent: e34acac62e84]