File tree Expand file tree Collapse file tree 6 files changed +38
-17
lines changed Expand file tree Collapse file tree 6 files changed +38
-17
lines changed Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.5 2001/09/06 10:49:29 petere Exp $
1
+ # $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
2
2
3
3
subdir = contrib/cube
4
4
top_builddir = ../..
@@ -12,7 +12,9 @@ DOCS = README.cube
12
12
REGRESS = cube
13
13
14
14
15
- cubeparse.c cubeparse.h : cubeparse.y
15
+ cubeparse.c : cubeparse.h ;
16
+
17
+ cubeparse.h : cubeparse.y
16
18
ifdef YACC
17
19
$(YACC) -d $(YFLAGS) -p cube_yy $<
18
20
mv -f y.tab.c cubeparse.c
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.5 2001/09/06 10:49:30 petere Exp $
1
+ # $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
2
2
3
3
subdir = contrib/seg
4
4
top_builddir = ../..
@@ -11,7 +11,9 @@ DOCS = README.seg
11
11
REGRESS = seg
12
12
13
13
14
- segparse.c segparse.h : segparse.y
14
+ segparse.c : segparse.h ;
15
+
16
+ segparse.h : segparse.y
15
17
ifdef YACC
16
18
$(YACC) -d $(YFLAGS) -p seg_yy $<
17
19
mv -f y.tab.c segparse.c
Original file line number Diff line number Diff line change 2
2
#
3
3
# Makefile for the bootstrap module
4
4
#
5
- # $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.28 2001/08/22 20:02:56 petere Exp $
5
+ # $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.29 2001/11/16 16:32:33 petere Exp $
6
6
#
7
7
# -------------------------------------------------------------------------
8
8
@@ -25,7 +25,7 @@ SUBSYS.o: $(OBJS)
25
25
$(LD ) $(LDREL ) $(LDOUT ) $@ $^
26
26
27
27
28
- bootstrap.o bootscanner.c : $(srcdir ) /bootstrap_tokens.h
28
+ bootstrap.o bootscanner.o : $(srcdir ) /bootstrap_tokens.h
29
29
30
30
31
31
# `sed' rules to remove conflicts between bootstrap scanner and parser
@@ -37,7 +37,9 @@ sed -e 's/^yy/Int_yy/g' \
37
37
endef
38
38
39
39
40
- $(srcdir ) /bootparse.c $(srcdir ) /bootstrap_tokens.h : bootparse.y Makefile
40
+ $(srcdir ) /bootparse.c : $(srcdir ) /bootstrap_tokens.h ;
41
+
42
+ $(srcdir ) /bootstrap_tokens.h : bootparse.y Makefile
41
43
ifdef YACC
42
44
$(YACC) -d $(YFLAGS) $<
43
45
$(sed-magic) < y.tab.c > $(srcdir)/bootparse.c
Original file line number Diff line number Diff line change 2
2
#
3
3
# Makefile for parser
4
4
#
5
- # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.34 2001/08/09 18:13:23 petere Exp $
5
+ # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.35 2001/11/16 16:32:33 petere Exp $
6
6
#
7
7
# -------------------------------------------------------------------------
8
8
@@ -20,15 +20,26 @@ all: SUBSYS.o
20
20
SUBSYS.o : $(OBJS )
21
21
$(LD ) $(LDREL ) $(LDOUT ) $@ $^
22
22
23
- $(srcdir ) /gram.c $(srcdir ) /parse.h : gram.y
23
+
24
+ # There is no correct way to write a rule that generates two files.
25
+ # Rules with two targets don't have that meaning, they are merely
26
+ # shorthand for two otherwise separate rules. To be safe for parallel
27
+ # make, we must chain the dependencies like this. The semicolon is
28
+ # important, otherwise make will choose the built-in rule for
29
+ # gram.y=>gram.c.
30
+
31
+ $(srcdir ) /gram.c : $(srcdir ) /parse.h ;
32
+
33
+ $(srcdir ) /parse.h : gram.y
24
34
ifdef YACC
25
35
$(YACC) -d $(YFLAGS) $<
26
- mv y.tab.c $(srcdir)/gram.c
27
- mv y.tab.h $(srcdir)/parse.h
36
+ mv -f y.tab.c $(srcdir)/gram.c
37
+ mv -f y.tab.h $(srcdir)/parse.h
28
38
else
29
39
@$(missing) bison $< $@
30
40
endif
31
41
42
+
32
43
$(srcdir ) /scan.c : scan.l
33
44
ifdef FLEX
34
45
$(FLEX) $(FLEXFLAGS) -Pbase_yy -o'$@' $<
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.77 2001/09/19 14:09:32 meskes Exp $
1
+ # $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.78 2001/11/16 16:32:33 petere Exp $
2
2
3
3
subdir = src/interfaces/ecpg/preproc
4
4
top_builddir = ../../../..
@@ -35,11 +35,13 @@ endif
35
35
ecpg : $(OBJS )
36
36
$(CC ) $(CFLAGS ) $(LDFLAGS ) $^ $(LIBS ) -o $@
37
37
38
- $(srcdir ) /preproc.c $(srcdir ) /preproc.h : preproc.y
38
+ $(srcdir ) /preproc.c : $(srcdir ) /preproc.h ;
39
+
40
+ $(srcdir ) /preproc.h : preproc.y
39
41
ifdef YACC
40
42
$(YACC) -d $(YFLAGS) $<
41
- mv y.tab.c $(srcdir)/preproc.c
42
- mv y.tab.h $(srcdir)/preproc.h
43
+ mv -f y.tab.c $(srcdir)/preproc.c
44
+ mv -f y.tab.h $(srcdir)/preproc.h
43
45
else
44
46
@$(missing) bison $< $@
45
47
endif
Original file line number Diff line number Diff line change 2
2
#
3
3
# Makefile for the plpgsql shared object
4
4
#
5
- # $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.19 2001/10/09 04:15:38 tgl Exp $
5
+ # $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.20 2001/11/16 16:32:33 petere Exp $
6
6
#
7
7
# -------------------------------------------------------------------------
8
8
@@ -64,7 +64,9 @@ pl_gram.o pl_scan.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o: plpgsql.h $(src
64
64
# Note: Since the yacc and lex files are shipped in the distribution,
65
65
# they must be generated in the srcdir (as opposed to builddir).
66
66
67
- $(srcdir ) /pl_gram.c $(srcdir ) /pl.tab.h : gram.y
67
+ $(srcdir ) /pl_gram.c : $(srcdir ) /pl.tab.h ;
68
+
69
+ $(srcdir ) /pl.tab.h : gram.y
68
70
ifdef YACC
69
71
$(YACC) -d $(YFLAGS) $<
70
72
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.c > $(srcdir)/pl_gram.c
You can’t perform that action at this time.
0 commit comments