backly/Makefile

20 lines
308 B
Makefile
Raw Normal View History

2015-02-10 21:42:23 -05:00
# Install destination and prefix
DESTDIR ?=
2015-02-10 21:11:15 -05:00
PREFIX ?= /usr/local
# Build flags
FLAGS = -std=gnu99
# Build rules
all: backly
.PHONY: all install clean
backly: backly.c Makefile
gcc $(FLAGS) -o backly backly.c
install: backly
2015-02-10 21:42:23 -05:00
install -Dm 0755 backly $(DESTDIR)/$(PREFIX)/bin/backly
2015-02-10 21:11:15 -05:00
clean:
rm -f backly