Makefile 1.2 KB
Newer Older
1 2
top_builddir = ..
include $(top_builddir)/src/Makefile.global
3
include $(top_builddir)/gpMgmt/Makefile.behave
4

5
SUBDIRS= sbin bin doc
6

7
$(recurse)
8 9

generate_greenplum_path_file:
10
	mkdir -p $(DESTDIR)$(prefix)
11
	unset LIBPATH; \
12
	bin/generate-greenplum-path.sh $(prefix) > $(DESTDIR)$(prefix)/greenplum_path.sh
13 14

install: generate_greenplum_path_file
15
	mkdir -p $(DESTDIR)$(prefix)/lib/python
16

17
	# Setup /lib/python contents
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
	if [ -e bin/ext/__init__.py ]; then \
	    cp -rp bin/ext/__init__.py $(DESTDIR)$(prefix)/lib/python ; \
	fi
	if [ -e bin/ext/lockfile ]; then \
	    cp -rp bin/ext/lockfile $(DESTDIR)$(prefix)/lib/python ; \
	fi
	if [ -e bin/ext/psutil ]; then \
	    cp -rp bin/ext/psutil $(DESTDIR)$(prefix)/lib/python ; \
	fi
	if [ -e bin/ext/pygresql ]; then \
	    cp -rp bin/ext/pygresql $(DESTDIR)$(prefix)/lib/python ; \
	fi
	if [ -e bin/ext/yaml ]; then \
	    cp -rp bin/ext/yaml $(DESTDIR)$(prefix)/lib/python ; \
	fi
33 34
	if [ -e bin/ext/subprocess32.py ]; then \
	    cp -p bin/ext/subprocess32.py $(DESTDIR)$(prefix)/lib/python ; \
35
	    cp -p bin/ext/subprocess32-ChangeLog $(DESTDIR)$(prefix)/lib/python ; \
36 37
	    cp -p bin/ext/_posixsubprocess.so $(DESTDIR)$(prefix)/lib/python ; \
	fi
38

39 40
clean distclean:
	$(MAKE) -C bin $@