Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64b4a48

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 parent228a5e7 commit64b4a48

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-
dependdep:
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+
dependdep:
36+
$(CC) -MM$(CFLAGS)*.c>depend
37+
3938
ifeq (depend,$(wildcard depend))
4039
include depend
4140
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp