blob: d176ceb326e5248462a067b822d0c2b8b85947ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#-------------------------------------------------------------------------
#
# src/tools/pg_bsd_indent/Makefile
#
# Copyright (c) 2017-2023, PostgreSQL Global Development Group
#
#-------------------------------------------------------------------------
PGFILEDESC = "pg_bsd_indent - indent C code nicely"
PGAPPICON = win32
subdir = src/tools/pg_bsd_indent
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
OBJS = \
$(WIN32RES) \
args.o \
err.o \
indent.o \
io.o \
lexi.o \
parse.o \
pr_comment.o
all: pg_bsd_indent
pg_bsd_indent: $(OBJS) | submake-libpgport
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
install: all installdirs
$(INSTALL_PROGRAM) pg_bsd_indent$(X) '$(DESTDIR)$(bindir)/pg_bsd_indent$(X)'
installdirs:
$(MKDIR_P) '$(DESTDIR)$(bindir)'
uninstall:
rm -f '$(DESTDIR)$(bindir)/pg_bsd_indent$(X)'
clean distclean maintainer-clean:
rm -f pg_bsd_indent$(X) $(OBJS)
rm -rf log/ tmp_check/
check: pg_bsd_indent
$(prove_check)
installcheck:
$(prove_installcheck)
# Provide this alternate test name to allow testing pg_bsd_indent
# without building all of the surrounding Postgres installation.
.PHONY: test
test: pg_bsd_indent
$(prove_installcheck)
|