Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.56 kB
PG_PATH=$(PWD)/pg
DATA_PATH=$(PWD)/pgdata
FLEX_PATH=$(PWD)/flex
PASSWORD=hellocedar
init: pg
rm -rf $(DATA_PATH)
echo $(PASSWORD) > password.txt
$(PG_PATH)/bin/initdb $(DATA_PATH) -U postgres --pwfile=password.txt
rm -f password.txt
echo 'host all all 0.0.0.0/0 md5' > $(DATA_PATH)/pg_hba.conf
pg: flex
cd postgresql-9.0.3 && FLEX=$(FLEX_PATH)/bin/flex ./configure --prefix=$(PG_PATH)
cd postgresql-9.0.3 && make install
flex:
cd flex-2.5.35 && ./configure --prefix=$(FLEX_PATH) && make install
clean:
rm -rf $(PG_PATH) $(DATA_PATH) $(FLEX_PATH)
Jump to Line
Something went wrong with that request. Please try again.