mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Simplify overly-clever Make rule, which evidently confuses at least
some versions of gmake (mine didn't do the right thing, anyway).
This commit is contained in:
parent
228a5e708c
commit
64b4a48ddc
@ -4,12 +4,12 @@
|
|||||||
# Makefile for utils/misc
|
# Makefile for utils/misc
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.14 2000/05/31 00:28:34 petere Exp $
|
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.15 2000/06/01 14:52:25 tgl Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
SRCDIR = ../../..
|
SRCDIR = ../../..
|
||||||
include ../../../Makefile.global
|
include $(SRCDIR)/Makefile.global
|
||||||
|
|
||||||
OBJS = database.o superuser.o guc.o guc-file.o
|
OBJS = database.o superuser.o guc.o guc-file.o
|
||||||
|
|
||||||
@ -18,24 +18,23 @@ all: SUBSYS.o
|
|||||||
SUBSYS.o: $(OBJS)
|
SUBSYS.o: $(OBJS)
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
||||||
|
|
||||||
.SECONDARY: guc-file.c
|
guc-file.c: guc-file.l
|
||||||
.INTERMEDIATE: lex.yy.c
|
$(LEX) $(LFLAGS) $<
|
||||||
|
|
||||||
guc-file.c: lex.yy.c
|
|
||||||
sed -e 's/lex\.yy\.c/guc-file\.c/g' \
|
sed -e 's/lex\.yy\.c/guc-file\.c/g' \
|
||||||
-e 's/^yy/GUC_yy/g' \
|
-e 's/^yy/GUC_yy/g' \
|
||||||
-e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < $< > $@
|
-e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < lex.yy.c > $@
|
||||||
|
rm -f lex.yy.c
|
||||||
lex.yy.c: guc-file.l
|
|
||||||
$(LEX) $(LFLAGS) $<
|
|
||||||
|
|
||||||
|
|
||||||
depend dep:
|
# Note: guc-file.c is not deleted by 'make clean',
|
||||||
$(CC) -MM $(CFLAGS) *.c >depend
|
# since we want to ship it in distribution tarballs.
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f SUBSYS.o $(OBJS) lex.yy.c
|
rm -f SUBSYS.o $(OBJS) lex.yy.c
|
||||||
|
|
||||||
|
depend dep:
|
||||||
|
$(CC) -MM $(CFLAGS) *.c >depend
|
||||||
|
|
||||||
ifeq (depend,$(wildcard depend))
|
ifeq (depend,$(wildcard depend))
|
||||||
include depend
|
include depend
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user