Makefile: create bindir before instal + force dir

in order to facilitate building of an rpm I've added an / to the end of the dirs.
This commit is contained in:
brynhood
2014-04-28 14:27:52 +02:00
committed by Jaime Casanova
parent 235c98a0b5
commit 6cb2376974

View File

@@ -36,8 +36,9 @@ endif
install: install_prog install_ext
install_prog:
$(INSTALL_PROGRAM) repmgrd$(X) '$(DESTDIR)$(bindir)'
$(INSTALL_PROGRAM) repmgr$(X) '$(DESTDIR)$(bindir)'
mkdir -p '$(DESTDIR)$(bindir)'
$(INSTALL_PROGRAM) repmgrd$(X) '$(DESTDIR)$(bindir)/'
$(INSTALL_PROGRAM) repmgr$(X) '$(DESTDIR)$(bindir)/'
install_ext:
$(MAKE) -C sql install