File tree 6 files changed +42
-20
lines changed
6 files changed +42
-20
lines changed Original file line number Diff line number Diff line change 1
1
#
2
2
# PostgreSQL top level makefile
3
3
#
4
- # $PostgreSQL: pgsql/GNUmakefile.in,v 1.42 2005/05/01 06:15:51 neilc Exp $
4
+ # $PostgreSQL: pgsql/GNUmakefile.in,v 1.43 2006/04/03 18:47:41 petere Exp $
5
5
#
6
6
7
7
subdir =
@@ -20,11 +20,17 @@ install:
20
20
$(MAKE) -C config $@
21
21
@echo "PostgreSQL installation complete."
22
22
23
- installdirs uninstall distprep :
23
+ installdirs uninstall:
24
24
$(MAKE) -C doc $@
25
25
$(MAKE) -C src $@
26
26
$(MAKE) -C config $@
27
27
28
+ distprep:
29
+ $(MAKE) -C doc $@
30
+ $(MAKE) -C src $@
31
+ $(MAKE) -C config $@
32
+ $(MAKE) -C contrib $@
33
+
28
34
# clean, distclean, etc should apply to contrib too, even though
29
35
# it's not built by default
30
36
clean:
Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/contrib/Makefile,v 1.63 2006/02/25 19: 18:58 petere Exp $
1
+ # $PostgreSQL: pgsql/contrib/Makefile,v 1.64 2006/04/03 18:47:41 petere Exp $
2
2
3
3
subdir = contrib
4
4
top_builddir = ..
@@ -42,7 +42,7 @@ WANTED_DIRS = \
42
42
# xml2 \ (requires libxml installed)
43
43
44
44
45
- all install installdirs uninstall clean distclean maintainer-clean :
45
+ all install installdirs uninstall distprep clean distclean maintainer-clean :
46
46
@for dir in $(WANTED_DIRS ) ; do \
47
47
$(MAKE ) -C $$ dir $@ || exit ; \
48
48
done
Original file line number Diff line number Diff line change
1
+ cubeparse.c
2
+ cubeparse.h
3
+ cubescan.c
Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.17 2006/03/07 01:03:12 tgl Exp $
1
+ # $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.18 2006/04/03 18:47:41 petere Exp $
2
2
3
3
MODULE_big = cube
4
4
OBJS = cube.o cubeparse.o
@@ -8,7 +8,7 @@ DATA = uninstall_cube.sql
8
8
DOCS = README.cube
9
9
REGRESS = cube
10
10
11
- EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
11
+ EXTRA_CLEAN = y.tab.c y.tab.h
12
12
13
13
PG_CPPFLAGS = -I.
14
14
@@ -26,24 +26,29 @@ endif
26
26
27
27
28
28
# cubescan is compiled as part of cubeparse
29
- cubeparse.o : cubescan.c
29
+ cubeparse.o : $( srcdir ) / cubescan.c
30
30
31
31
# See notes in src/backend/parser/Makefile about the following two rules
32
32
33
- cubeparse.c : cubeparse.h ;
33
+ $( srcdir ) / cubeparse.c : $( srcdir ) / cubeparse.h ;
34
34
35
- cubeparse.h : cubeparse.y
35
+ $( srcdir ) / cubeparse.h : cubeparse.y
36
36
ifdef YACC
37
37
$(YACC) -d $(YFLAGS) $<
38
- mv -f y.tab.c cubeparse.c
39
- mv -f y.tab.h cubeparse.h
38
+ mv -f y.tab.c $(srcdir)/ cubeparse.c
39
+ mv -f y.tab.h $(srcdir)/ cubeparse.h
40
40
else
41
41
@$(missing) bison $< $@
42
42
endif
43
43
44
- cubescan.c : cubescan.l
44
+ $( srcdir ) / cubescan.c : cubescan.l
45
45
ifdef FLEX
46
46
$(FLEX) $(FLEXFLAGS) -o'$@' $<
47
47
else
48
48
@$(missing) flex $< $@
49
49
endif
50
+
51
+ distprep : $(srcdir ) /cubeparse.c $(srcdir ) /cubeparse.h $(srcdir ) /cubescan.c
52
+
53
+ maintainer-clean :
54
+ rm -f $(srcdir ) /cubeparse.c $(srcdir ) /cubeparse.h $(srcdir ) /cubescan.c
Original file line number Diff line number Diff line change
1
+ segparse.c
2
+ segparse.h
3
+ segscan.c
Original file line number Diff line number Diff line change 1
- # $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.16 2006/03/07 01:03:12 tgl Exp $
1
+ # $PostgreSQL: pgsql/contrib/seg/Makefile,v 1.17 2006/04/03 18:47:41 petere Exp $
2
2
3
3
MODULE_big = seg
4
4
OBJS = seg.o segparse.o
@@ -7,7 +7,7 @@ DATA = uninstall_seg.sql
7
7
DOCS = README.seg
8
8
REGRESS = seg
9
9
10
- EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
10
+ EXTRA_CLEAN = y.tab.c y.tab.h
11
11
12
12
PG_CPPFLAGS = -I.
13
13
@@ -23,24 +23,29 @@ endif
23
23
24
24
25
25
# segscan is compiled as part of segparse
26
- segparse.o : segscan.c
26
+ segparse.o : $( srcdir ) / segscan.c
27
27
28
28
# See notes in src/backend/parser/Makefile about the following two rules
29
29
30
- segparse.c : segparse.h ;
30
+ $( srcdir ) / segparse.c : $( srcdir ) / segparse.h ;
31
31
32
- segparse.h : segparse.y
32
+ $( srcdir ) / segparse.h : segparse.y
33
33
ifdef YACC
34
34
$(YACC) -d $(YFLAGS) $<
35
- mv -f y.tab.c segparse.c
36
- mv -f y.tab.h segparse.h
35
+ mv -f y.tab.c $(srcdir)/ segparse.c
36
+ mv -f y.tab.h $(srcdir)/ segparse.h
37
37
else
38
38
@$(missing) bison $< $@
39
39
endif
40
40
41
- segscan.c : segscan.l
41
+ $( srcdir ) / segscan.c : segscan.l
42
42
ifdef FLEX
43
43
$(FLEX) $(FLEXFLAGS) -o'$@' $<
44
44
else
45
45
@$(missing) flex $< $@
46
46
endif
47
+
48
+ distprep : $(srcdir ) /segparse.c $(srcdir ) /segparse.h $(srcdir ) /segscan.c
49
+
50
+ maintainer-clean :
51
+ rm -f $(srcdir ) /segparse.c $(srcdir ) /segparse.h $(srcdir ) /segscan.c
You can’t perform that action at this time.
0 commit comments