summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-01-29 13:22:43 -0500
committerJune McEnroe <june@causal.agency>2018-01-29 13:22:43 -0500
commit2a463ab5790a303c28c3cd71a98dc1ef403a333d (patch)
treed59ff2914e7353abd149a26a1e944b5e25091a2c /bin/Makefile
parentRemove color from Makefile (diff)
downloadsrc-2a463ab5790a303c28c3cd71a98dc1ef403a333d.tar.gz
src-2a463ab5790a303c28c3cd71a98dc1ef403a333d.zip
Add fbclock
Diffstat (limited to '')
-rw-r--r--bin/Makefile25
1 files changed, 15 insertions, 10 deletions
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