1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03: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
This commit is contained in:
Bruce Momjian
1998-04-06 00:32:26 +00:00
parent 2dfee93457
commit 1e801a8f16
81 changed files with 250 additions and 430 deletions

View File

@@ -1,4 +1,4 @@
all install uninstall clean:
all install uninstall clean dep depend:
$(MAKE) -C include $@
$(MAKE) -C lib $@
$(MAKE) -C preproc $@

View File

@@ -14,3 +14,5 @@ uninstall::
rm -f $(HEADERDIR)/ecpglib.h
rm -f $(HEADERDIR)/ecpgtype.h
rm -f $(HEADERDIR)/sqlca.h
dep depend:

View File

@@ -53,6 +53,8 @@ $(shlib): ecpglib.o typename.o
clean:
rm -f *.o *.a core a.out *~ $(shlib) libecpg.so
dep depend:
install: libecpg.a $(shlib) $(install-shlib-dep)
$(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR)

View File

@@ -20,6 +20,9 @@ install: all
uninstall:
rm -f $(BINDIR)/ecpg
dep depend:
$(CC) -MM $(CFLAGS) *.c > depend
# Rule that really do something.
ecpg: y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
$(CC) -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB)

View File

@@ -12,3 +12,5 @@ perftest.c: perftest.pgc
clean:
/bin/rm test2 test2.c perftest perftest.c log
dep depend: