Fix client-only installation
authorPeter Eisentraut
Sat, 18 Jan 2014 04:08:22 +0000 (23:08 -0500)
committerPeter Eisentraut
Sat, 18 Jan 2014 04:12:50 +0000 (23:12 -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
src/bin/psql/Makefile

index 771fd712e468eb91fecd7f7b905195d760f4a510..b6514c93189e3ee94002b2e4c74f08d6dce2c00a 100644 (file)
@@ -64,7 +64,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'