mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-13 18:07:05 +08:00
Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
35 lines
933 B
Makefile
35 lines
933 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for utils
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.5 1998/04/06 00:32:26 momjian Exp $
|
|
#
|
|
# About strdup: Some systems have strdup in their standard library, others
|
|
# don't. Ones that don't will use this make file to compile the strdup.c
|
|
# in this directory. (You don't see strdup mentioned because the implicit
|
|
# rule does the job). We don't make strdup.o unless asked to explicitly
|
|
# because the strdup.c in this directory may conflict with the strdup()
|
|
# prototype from the system library and cause a compile error.
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
SRCDIR = ..
|
|
include ../Makefile.global
|
|
|
|
all: version.o
|
|
|
|
install:
|
|
|
|
depend dep:
|
|
$(CC) $(CFLAGS) -MM *.c >depend
|
|
|
|
clean:
|
|
rm -f version.o
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|
|
|