From 2a463ab5790a303c28c3cd71a98dc1ef403a333d Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 29 Jan 2018 13:22:43 -0500 Subject: Add fbclock --- bin/Makefile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'bin/Makefile') diff --git a/bin/Makefile b/bin/Makefile index a51ff062..f1b99edd 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,11 +1,16 @@ -PINS = atch bri dtch hnel pbcopy pbd pbpaste wake xx -BINS = $(PINS) jrp klon typo watch +ANY_BINS = atch dtch hnel pbcopy pbd pbpaste wake xx +BSD_BINS = jrp klon typo watch +LIN_BINS = bri fbclock +ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(LIN_BINS) + CFLAGS += -Wall -Wextra -Wpedantic -LDLIBS = -lcurses -ledit -lutil +LDLIBS = -lcurses -ledit -lutil -lz + +bsd: $(ANY_BINS) $(BSD_BINS) .gitignore -all: $(BINS) .gitignore +linux: $(ANY_BINS) $(LIN_BINS) .gitignore -portable: $(PINS) .gitignore +any: $(ANY_BINS) .gitignore atch: dtch ln -f dtch atch @@ -18,15 +23,15 @@ setuid: bri chmod u+s bri clean: - rm -f $(BINS) + rm -f $(ALL_BINS) link: - ln -s -f $(BINS:%=$(PWD)/%) ~/.bin + ln -s -f $(ALL_BINS:%=$(PWD)/%) ~/.bin unlink: - rm -f $(BINS:%=~/.bin/%) + rm -f $(ALL_BINS:%=~/.bin/%) .gitignore: Makefile - echo $(BINS) | tr ' ' '\n' > .gitignore + echo $(ALL_BINS) | tr ' ' '\n' > .gitignore -.PHONY: all portable setuid clean link unlink +.PHONY: bsd linux any setuid clean link unlink -- cgit 1.4.1