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

index 8227b43407a8d31dde98479605b252a5fba61a29..62728ddcd0a53c4a58ab8fb273c09348e8f1ffa5 100644 (file)
@@ -63,7 +63,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'