1
1
# -------------------------------------------------------------------------
2
2
#
3
- # Makefile.inc --
3
+ # Makefile.in --
4
4
# Makefile for bin/psql
5
5
#
6
6
# Copyright (c) 1994, Regents of the University of California
7
7
#
8
8
#
9
9
# IDENTIFICATION
10
- # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.15 1999/01/17 06:19:19 momjian Exp $
10
+ # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.16 1999/11/04 21:56:01 momjian Exp $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
@@ -28,7 +28,9 @@ ifdef MULTIBYTE
28
28
CFLAGS+ = $(MBFLAGS )
29
29
endif
30
30
31
- OBJS = psql.o stringutils.o @STRDUP@ @STRERROR2@
31
+ OBJS =command.o common.o help.o input.o stringutils.o mainloop.o \
32
+ copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \
33
+ @STRDUP@ @STRERROR2@
32
34
33
35
all : submake psql
34
36
@@ -38,6 +40,18 @@ psql: $(OBJS) $(LIBPQDIR)/libpq.a
38
40
../../utils/strdup.o :
39
41
$(MAKE ) -C ../../utils strdup.o
40
42
43
+ OBJS :
44
+ $(CC ) $(CFLAGS ) -c $< -o $@
45
+
46
+ help.o : sql_help.h
47
+
48
+ ifneq ($(strip $(PERL ) ) ,)
49
+ sql_help.h : ../../../doc/src/sgml/ref/* .sgml create_help.pl
50
+ $(PERL ) create_help.pl sql_help.h
51
+ else
52
+ sql_help.h :
53
+ endif
54
+
41
55
.PHONY : submake
42
56
submake :
43
57
$(MAKE ) -C $(LIBPQDIR ) libpq.a
@@ -46,14 +60,18 @@ install: psql
46
60
$(INSTALL ) $(INSTL_EXE_OPTS ) psql$(X ) $(BINDIR ) /psql$(X )
47
61
48
62
depend dep :
49
- $(CC ) -MM $(CFLAGS ) * .c > depend
63
+ $(CC ) -MM -MG $(CFLAGS ) * .c > depend
50
64
51
65
clean :
52
- rm -f psql$(X ) $(OBJS )
66
+ rm -f psql$(X ) $(OBJS )
67
+
68
+ # Some people might get in trouble if they do a make clean and the
69
+ # sql_help.h is gone, for it needs the docs in the right place to be
70
+ # regenerated. -- (pe)
71
+
72
+ distclean : clean
73
+ rm -f sql_help.h
53
74
54
75
ifeq (depend,$(wildcard depend) )
55
76
include depend
56
77
endif
57
-
58
-
59
-
0 commit comments