Fix makefile syntax.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 2 Feb 2014 00:51:37 +0000 (19:51 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 2 Feb 2014 00:51:37 +0000 (19:51 -0500)
src/interfaces/libpq/Makefile

index 230e825c471b8f56390137772c0ec61d06588d48..ad12644e20bbd9e134a472e8ddc01becbe9221d6 100644 (file)
@@ -111,14 +111,14 @@ install: all installdirs install-lib
    $(INSTALL_DATA) $(srcdir)/libpq-int.h '$(DESTDIR)$(includedir_internal)'
    $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
    $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
-ifneq (,$findstring($(PORTNAME), win32 cygwin))
+ifneq (,$(findstring $(PORTNAME), win32 cygwin))
    $(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
 endif
 
 installdirs: installdirs-lib
    $(mkinstalldirs) '$(DESTDIR)$(includedir)' '$(DESTDIR)$(includedir_internal)'
-ifneq (,$findstring($(PORTNAME), win32 cygwin))
-   $(MKDIR_P) '$(DESTDIR)$(bindir)'
+ifneq (,$(findstring $(PORTNAME), win32 cygwin))
+   $(mkinstalldirs) '$(DESTDIR)$(bindir)'
 endif
 
 uninstall: uninstall-lib
@@ -127,7 +127,7 @@ uninstall: uninstall-lib
    rm -f '$(DESTDIR)$(includedir_internal)/libpq-int.h'
    rm -f '$(DESTDIR)$(includedir_internal)/pqexpbuffer.h'
    rm -f '$(DESTDIR)$(datadir)/pg_service.conf.sample'
-ifneq (,$findstring($(PORTNAME), win32 cygwin))
+ifneq (,$(findstring $(PORTNAME), win32 cygwin))
    rm -f '$(DESTDIR)$(bindir)/$(shlib)'
 endif