Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix client-only installation
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 18 Jan 2014 04:08:22 +0000 (23:08 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 18 Jan 2014 04:11:02 +0000 (23:11 -0500)
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

index 5b77173f59aeae21dee4302b618fc00e3ddd14ab..7878ca625892ad8185335da66e89b05756f8897d 100644 (file)
@@ -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'