1 #-------------------------------------------------------------------------
3 # Makefile for src/bin/pg_controldata
5 # Copyright (c) 1998-2021, PostgreSQL Global Development Group
7 # src/bin/pg_controldata/Makefile
9 #-------------------------------------------------------------------------
11 PGFILEDESC
= "pg_controldata - reads the data from pg_control"
14 subdir
= src
/bin
/pg_controldata
15 top_builddir
= ..
/..
/..
16 include $(top_builddir
)/src
/Makefile.global
24 pg_controldata
: $(OBJS
) | submake-libpgport
25 $(CC
) $(CFLAGS
) $^
$(LDFLAGS
) $(LDFLAGS_EX
) $(LIBS
) -o
$@
$(X
)
27 install: all installdirs
28 $(INSTALL_PROGRAM
) pg_controldata
$(X
) '$(DESTDIR)$(bindir)/pg_controldata$(X)'
31 $(MKDIR_P
) '$(DESTDIR)$(bindir)'
34 rm -f
'$(DESTDIR)$(bindir)/pg_controldata$(X)'
36 clean distclean maintainer-clean
:
37 rm -f pg_controldata
$(X
) $(OBJS
)