Add deps from toplevel install to build targets

Otherwise a parallel 'make install' can end up trying to build the same
targets twice, once via the normal build rules ('all') and once via
install.
pull/340/head
Andres Freund 2016-02-16 11:01:23 +01:00 committed by Jason Petersen
parent 7efbb5b472
commit 93caee2929
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ all: extension csql
# build extension
extension:
$(MAKE) -C src/backend/distributed/ all
install-extension:
install-extension: extension
$(MAKE) -C src/backend/distributed/ install
install-headers:
install-headers: extension
$(MKDIR_P) '$(includedir_server)/distributed/'
# generated headers are located in the build directory
$(INSTALL_DATA) src/include/citus_config.h '$(includedir_server)/'
@ -33,7 +33,7 @@ clean: clean-extension
# build csql binary
csql:
$(MAKE) -C src/bin/csql/ all
install-csql:
install-csql: csql
$(MAKE) -C src/bin/csql/ install
clean-csql:
$(MAKE) -C src/bin/csql/ clean