mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-30 13:47:20 +02:00
version number from the current database, and couldn't find any existing program to do that. linda:~$ pg_controldata Log file id: 0 Log file segment: 5 Last modified: Wed Feb 7 19:35:47 2001 Database block size: 8192 Blocks per segment of large relation: 131072 Catalog version number: 200101061 LC_COLLATE: en_GB LC_CTYPE: en_GB Log archive directory: Oliver Elphick Oliver.Elphick@lfix.co.uk
37 lines
869 B
Makefile
37 lines
869 B
Makefile
#
|
|
# $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/Makefile,v 1.1 2001/02/23 20:38:35 momjian Exp $
|
|
#
|
|
|
|
subdir = contrib/pg_controldata
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
|
|
|
OBJS = pg_controldata.o
|
|
|
|
all: pg_controldata
|
|
|
|
pg_controldata: $(OBJS) $(libpq_builddir)/libpq.a
|
|
$(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
|
|
|
|
install: all installdirs
|
|
$(INSTALL_PROGRAM) pg_controldata$(X) $(bindir)
|
|
$(INSTALL_DATA) README.pg_controldata $(docdir)/contrib
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
|
|
|
uninstall:
|
|
rm -f $(bindir)/pg_controldata$(X) $(docdir)/contrib/README.pg_controldata
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f pg_controldata$(X) $(OBJS)
|
|
|
|
depend dep:
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|