mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Hi,
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:
@@ -1,4 +1,4 @@
|
||||
all install uninstall clean:
|
||||
all install uninstall clean dep depend:
|
||||
$(MAKE) -C include $@
|
||||
$(MAKE) -C lib $@
|
||||
$(MAKE) -C preproc $@
|
||||
|
||||
@@ -14,3 +14,5 @@ uninstall::
|
||||
rm -f $(HEADERDIR)/ecpglib.h
|
||||
rm -f $(HEADERDIR)/ecpgtype.h
|
||||
rm -f $(HEADERDIR)/sqlca.h
|
||||
|
||||
dep depend:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -12,3 +12,5 @@ perftest.c: perftest.pgc
|
||||
|
||||
clean:
|
||||
/bin/rm test2 test2.c perftest perftest.c log
|
||||
|
||||
dep depend:
|
||||
|
||||
Reference in New Issue
Block a user