From: Peter Eisentraut Date: Tue, 24 Apr 2012 18:20:55 +0000 (+0300) Subject: entab: Improve makefile X-Git-Tag: REL9_2_BETA1~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd44677df7f5139afa6d6a2d8f5a92e2db54cba;p=postgresql entab: Improve makefile A few simplifications and stylistic improvements, found while grepping around for makefile problems elsewhere. --- diff --git a/src/tools/entab/Makefile b/src/tools/entab/Makefile index 6372971fc0..00be1f5ee7 100644 --- a/src/tools/entab/Makefile +++ b/src/tools/entab/Makefile @@ -5,17 +5,11 @@ TARGET = entab BINDIR = /usr/local/bin XFLAGS = -CFLAGS = -O +CFLAGS = -O $(XFLAGS) LIBS = -$(TARGET) : entab.o halt.o - $(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS) - -entab.o : entab.c - $(CC) -c $(XFLAGS) $(CFLAGS) entab.c - -halt.o : halt.c - $(CC) -c $(XFLAGS) $(CFLAGS) halt.c +$(TARGET): entab.o halt.o + $(CC) -o $@ $(CFLAGS) $^ $(LIBS) clean: rm -f *.o $(TARGET) log core