1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-31 10:30:33 +03:00

Add distprep target to take some of the job of the release_prep script.

The latter updated accordingly. Also add `dist' and `distcheck' targets
to play with, but caveat packager.

Updated backend/bootstrap and backend/parser makefile to make them
marginally builddir aware and fix the usual set of things.

Add rule to automatically remake config.h dependent on config.h.in and
config.status. (Adopted from Autoconf manual and about every other
package.) On a good day we should now have a complete and accurate set
of dependencies throughout everything.
This commit is contained in:
Peter Eisentraut
2000-07-19 16:30:27 +00:00
parent 79e6648649
commit 32163099d7
18 changed files with 205 additions and 164 deletions

View File

@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.40 2000/06/28 18:29:35 petere Exp $
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.41 2000/07/19 16:30:06 petere Exp $
#
#-------------------------------------------------------------------------
@@ -37,8 +37,8 @@ DIRS += python
endif
all install installdirs uninstall dep depend:
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; done
all install installdirs uninstall dep depend distprep:
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
clean:
@for dir in $(DIRS); do $(MAKE) -C $$dir $@; done

View File

@@ -2,7 +2,7 @@ subdir = src/interfaces/ecpg
top_builddir = ../../..
include ../../Makefile.global
all install installdirs uninstall dep depend:
all install installdirs uninstall dep depend distprep:
$(MAKE) -C include $@
$(MAKE) -C lib $@
$(MAKE) -C preproc $@

View File

@@ -35,6 +35,8 @@ $(srcdir)/pgc.c: pgc.l
$(LEX) $(LFLAGS) $<
mv lex.yy.c $@
distprep: $(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c
install: all installdirs
$(INSTALL_PROGRAM) ecpg$(X) $(bindir)