Sha256: 049a3f102796699c3dc3422d9c78414c19179d126cf4ab34adf588a16c4e235a

Contents?: true

Size: 807 Bytes

Versions: 9

Compression:

Stored size: 807 Bytes

Contents

# vim: ft=make noexpandtab

# normalize rubyarchdir which is not available depending on rake or gem
narchdir = $(if $(rubyarchdir),$(rubyarchdir),$(RUBYARCHDIR))

# hack for RubyGems >= 1.8.26
final_archdir = $(if $(findstring .gem.,$(narchdir)),$(dir $(narchdir)),$(narchdir))

NATIVE_PREFIX = $(abspath $(final_archdir)/prestogres)

CFLAGS += -DPRESTOGRES_PREFIX="\"$(NATIVE_PREFIX)\""

all: native
clean: clean-native
install: install-native

PGPOOL2_PATH = $(abspath $(srcdir)/../pgpool2)

native:
	mkdir -p build
	cd build && "$(PGPOOL2_PATH)/configure" \
		CFLAGS="-I$(PGPOOL2_PATH)" \
		--with-openssl \
		--prefix="$(NATIVE_PREFIX)"
	cd build && make sysconfdir=/opt/prestogres/etc

clean-native:
	@rm -rf build

install-native:
	cd build && make install

.PHONY: native clean-native install-native

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
prestogres-0.4.8 ext/depend
prestogres-0.4.7 ext/depend
prestogres-0.4.6 ext/depend
prestogres-0.4.5 ext/depend
prestogres-0.4.4 ext/depend
prestogres-0.4.3 ext/depend
prestogres-0.4.2 ext/depend
prestogres-0.4.1 ext/depend
prestogres-0.4.0 ext/depend