11# -------------------------------------------------------------------------
22#
3- # Makefile.inc --
3+ # Makefile.in --
44# Makefile for bin/psql
55#
66# Copyright (c) 1994, Regents of the University of California
77#
88#
99# 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 $
1111#
1212# -------------------------------------------------------------------------
1313
@@ -28,7 +28,9 @@ ifdef MULTIBYTE
2828CFLAGS+ = $(MBFLAGS )
2929endif
3030
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@
3234
3335all : submake psql
3436
@@ -38,6 +40,18 @@ psql: $(OBJS) $(LIBPQDIR)/libpq.a
3840../../utils/strdup.o :
3941 $(MAKE ) -C ../../utils strdup.o
4042
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+
4155.PHONY : submake
4256submake :
4357 $(MAKE ) -C $(LIBPQDIR ) libpq.a
@@ -46,14 +60,18 @@ install: psql
4660 $(INSTALL ) $(INSTL_EXE_OPTS ) psql$(X ) $(BINDIR ) /psql$(X )
4761
4862depend dep :
49- $(CC ) -MM $(CFLAGS ) * .c > depend
63+ $(CC ) -MM -MG $(CFLAGS ) * .c > depend
5064
5165clean :
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
5374
5475ifeq (depend,$(wildcard depend) )
5576include depend
5677endif
57-
58-
59-
0 commit comments