PREFIX ?= /usr/local BINDIR ?= /bin CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion ifeq ($(DEBUG), 1) CFLAGS += -Og -g else CFLAGS += -O2 endif all: pipeln pipeln: pipeln.c clean: rm -f pipeln install: install -m755 pipeln -t "$(DESTDIR)$(PREFIX)$(BINDIR)" uninstall: rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/pipeln" .PHONY: all clean install uninstall