Skip to content

Commit 64b4a48

Browse files
committed
Simplify overly-clever Make rule, which evidently confuses at least
some versions of gmake (mine didn't do the right thing, anyway).
1 parent 228a5e7 commit 64b4a48

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/backend/utils/misc/Makefile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Makefile for utils/misc
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.14 2000/05/31 00:28:34 petere Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.15 2000/06/01 14:52:25 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
SRCDIR = ../../..
12-
include ../../../Makefile.global
12+
include $(SRCDIR)/Makefile.global
1313

1414
OBJS = database.o superuser.o guc.o guc-file.o
1515

@@ -18,24 +18,23 @@ all: SUBSYS.o
1818
SUBSYS.o: $(OBJS)
1919
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
2020

21-
.SECONDARY: guc-file.c
22-
.INTERMEDIATE: lex.yy.c
23-
24-
guc-file.c: lex.yy.c
21+
guc-file.c: guc-file.l
22+
$(LEX) $(LFLAGS) $<
2523
sed -e 's/lex\.yy\.c/guc-file\.c/g' \
2624
-e 's/^yy/GUC_yy/g' \
27-
-e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < $< > $@
25+
-e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < lex.yy.c > $@
26+
rm -f lex.yy.c
2827

29-
lex.yy.c: guc-file.l
30-
$(LEX) $(LFLAGS) $<
3128

32-
33-
depend dep:
34-
$(CC) -MM $(CFLAGS) *.c >depend
29+
# Note: guc-file.c is not deleted by 'make clean',
30+
# since we want to ship it in distribution tarballs.
3531

3632
clean:
3733
rm -f SUBSYS.o $(OBJS) lex.yy.c
3834

35+
depend dep:
36+
$(CC) -MM $(CFLAGS) *.c >depend
37+
3938
ifeq (depend,$(wildcard depend))
4039
include depend
4140
endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy