]> granicus.if.org Git - postgresql/blob - src/tools/entab/Makefile
entab: Improve makefile
[postgresql] / src / tools / entab / Makefile
1 #
2 # Makefile
3 #
4 #
5 TARGET = entab
6 BINDIR = /usr/local/bin
7 XFLAGS =
8 CFLAGS = -O $(XFLAGS)
9 LIBS =
10
11 $(TARGET): entab.o halt.o
12         $(CC) -o $@ $(CFLAGS) $^ $(LIBS)
13
14 clean:
15         rm -f *.o $(TARGET) log core
16
17 install: $(TARGET)
18         install -s $(TARGET) $(BINDIR)
19         rm -f $(BINDIR)/detab
20         ln $(BINDIR)/$(TARGET) $(BINDIR)/detab