Makefile
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:1k
- #-------------------------------------------------------------------------
- #
- # Makefile--
- # Makefile for regress (the regression test)
- #
- # Copyright (c) 1994, Regents of the University of California
- #
- #
- # IDENTIFICATION
- # $Header: /usr/local/cvsroot/pgsql/src/test/regress/input/Makefile,v 1.7 1998/09/29 12:41:56 scrappy Exp $
- #
- #-------------------------------------------------------------------------
- SRCDIR= ../../..
- include ../../../Makefile.global
- #
- # ... plus test query inputs
- #
- # INFILES is the files the regression test uses for input.
- INFILES= copy.sql
- create_function_1.sql
- create_function_2.sql
- misc.sql
- constraints.sql
- install_plpgsql.sql
- all: $(INFILES)
- %.sql: %.source
- if [ -z "$$USER" ]; then USER=$$LOGNAME; fi;
- if [ -z "$$USER" ]; then USER=`whoami`; fi;
- if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi;
- rm -f $@;
- OBJ=`pwd`;
- sed -e "s:_OBJWD_:$$OBJ/..:g"
- -e "s:_DLSUFFIX_:$(DLSUFFIX):g"
- -e "s:_LIBDIR_:$(LIBDIR):g"
- -e "s/_USER_/$$USER/g" < $< > ../sql/$@