2008-12-08 04:32:10 +00:00
|
|
|
#
|
|
|
|
# pg_reorg: Makefile
|
|
|
|
#
|
2010-01-28 06:02:28 +00:00
|
|
|
# Copyright (c) 2008-2010, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
2008-12-08 04:32:10 +00:00
|
|
|
#
|
2009-12-28 08:25:00 +00:00
|
|
|
ifdef USE_PGXS
|
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = pg_statsinfo
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
endif
|
2008-12-08 04:32:10 +00:00
|
|
|
|
2009-12-28 08:25:00 +00:00
|
|
|
SUBDIRS = bin lib
|
2008-12-08 04:32:10 +00:00
|
|
|
|
2009-12-28 08:25:00 +00:00
|
|
|
all install installdirs uninstall distprep clean distclean maintainer-clean debug:
|
|
|
|
@for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir $@ || exit; \
|
|
|
|
done
|
2008-12-08 04:32:10 +00:00
|
|
|
|
2009-12-28 08:25:00 +00:00
|
|
|
# We'd like check operations to run all the subtests before failing.
|
|
|
|
check installcheck:
|
|
|
|
@CHECKERR=0; for dir in $(SUBDIRS); do \
|
|
|
|
$(MAKE) -C $$dir $@ || CHECKERR=$$?; \
|
|
|
|
done; \
|
|
|
|
exit $$CHECKERR
|