github.com/ffrizzo/terraform@v0.8.2-0.20161219200057-992e12335f3d/builtin/providers/postgresql/GNUmakefile (about)

     1  POSTGRES?=/opt/local/lib/postgresql96/bin/postgres
     2  PSQL?=/opt/local/lib/postgresql96/bin/psql
     3  
     4  PGDATA?=$(GOPATH)/src/github.com/hashicorp/terraform/builtin/providers/postgresql/data
     5  
     6  initdb::
     7  	/opt/local/lib/postgresql96/bin/initdb --no-locale -U postgres -D $(PGDATA)
     8  
     9  startdb::
    10  	2>&1 \
    11  	$(POSTGRES) \
    12  		-D $(PGDATA) \
    13  		-c log_connections=on \
    14  		-c log_disconnections=on \
    15  		-c log_duration=on \
    16  		-c log_statement=all \
    17  	| tee postgresql.log
    18  
    19  cleandb::
    20  	rm -rf $(PGDATA)
    21  
    22  freshdb:: cleandb initdb startdb
    23  
    24  test::
    25  	2>&1 PGSSLMODE=disable PGHOST=/tmp PGUSER=postgres make -C ../../.. testacc TEST=./builtin/providers/postgresql | tee test.log
    26  
    27  psql::
    28  	$(PSQL) -E postgres postgres