Skip to content

Commit e5f3690

Browse files
committed
pgbench: Fix mistakes in Makefile.
My commit 878fdcb was not quite right. Tom Lane pointed out one of the mistakes fixed here, and I noticed the other myself while reviewing what I'd committed.
1 parent d147901 commit e5f3690

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

contrib/pgbench/Makefile

+3-10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ PGAPPICON = win32
66
PROGRAM = pgbench
77
OBJS = pgbench.o exprparse.o $(WIN32RES)
88

9-
EXTRA_CLEAN = exprparse.c exprscan.c
10-
119
PG_CPPFLAGS = -I$(libpq_srcdir)
1210
PG_LIBS = $(libpq_pgport) $(PTHREAD_LIBS)
1311

@@ -28,13 +26,8 @@ ifneq ($(PORTNAME), win32)
2826
override CFLAGS += $(PTHREAD_CFLAGS)
2927
endif
3028

31-
# There is no correct way to write a rule that generates two files.
32-
# Rules with two targets don't have that meaning, they are merely
33-
# shorthand for two otherwise separate rules. To be safe for parallel
34-
# make, we must chain the dependencies like this. The semicolon is
35-
# important; otherwise, make will choose the built-in rule.
36-
37-
exprparse.h: exprparse.c ;
38-
3929
# exprscan is compiled as part of exprparse
4030
exprparse.o: exprscan.c
31+
32+
maintainer-clean:
33+
rm -f exprparse.c exprscan.c

0 commit comments

Comments
 (0)