citus/Makefile

50 lines
1.3 KiB
Makefile

# CitusDB toplevel Makefile
citusdb_subdir = .
citusdb_top_builddir = .
# Hint that configure should be run first
ifeq (,$(wildcard Makefile.global))
$(error ./configure needs to be run before compiling CitusDB)
endif
include Makefile.global
all: extension csql
# build extension
extension:
$(MAKE) -C src/backend/distributed/ all
install-extension:
$(MAKE) -C src/backend/distributed/ install
install-headers:
$(MKDIR_P) '$(includedir_server)/distributed/'
# generated headers are located in the build directory
$(INSTALL_DATA) src/include/citusdb_config.h '$(includedir_server)/'
# the rest in the source tree
$(INSTALL_DATA) $(citusdb_abs_srcdir)/src/include/distributed/*.h '$(includedir_server)/distributed/'
clean-extension:
$(MAKE) -C src/backend/distributed/ clean
.PHONY: extension install-extension clean-extension
# Add to generic targets
install: install-extension install-headers
clean: clean-extension
# build csql binary
csql:
$(MAKE) -C src/bin/csql/ all
install-csql:
$(MAKE) -C src/bin/csql/ install
clean-csql:
$(MAKE) -C src/bin/csql/ clean
.PHONY: csql install-csql clean-csql
# Add to generic targets
install: install-csql
clean: clean-csql
# depend on install for now
check: all install
$(MAKE) -C src/test/regress check-full
.PHONY: all check install clean