Skip to content

Commit a45195a

Browse files
committed
Major psql overhaul by Peter Eisentraut.
1 parent 2ea3b6d commit a45195a

30 files changed

+7019
-145
lines changed

src/bin/psql/Makefile.in

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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
2828
CFLAGS+= $(MBFLAGS)
2929
endif
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

3335
all: 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
4256
submake:
4357
$(MAKE) -C $(LIBPQDIR) libpq.a
@@ -46,14 +60,18 @@ install: psql
4660
$(INSTALL) $(INSTL_EXE_OPTS) psql$(X) $(BINDIR)/psql$(X)
4761

4862
depend dep:
49-
$(CC) -MM $(CFLAGS) *.c >depend
63+
$(CC) -MM -MG $(CFLAGS) *.c >depend
5064

5165
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
5374

5475
ifeq (depend,$(wildcard depend))
5576
include depend
5677
endif
57-
58-
59-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy