Makefile (390B)
1 PREFIX = /usr/local 2 BINDIR = $(PREFIX)/bin 3 SRC = cmus2tsv.c 4 OBJ = $(SRC:.c=.o) 5 BIN = cmus2tsv 6 CFLAGS = -g3 -O0 7 SH = cmusextractpl 8 9 all: $(BIN) 10 $(BIN): $(OBJ) 11 $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) 12 13 clean: 14 rm $(BIN) $(OBJ) 15 16 install: 17 install -m0755 $(BIN) $(BINDIR)/$(BIN) 18 install -m0755 $(SH) $(BINDIR)/$(SH) 19 20 uninstall: 21 rm -f $(BINDIR)/$(BIN) 22 23 .PHONY: all clean install uninstall