summary refs log tree commit diff
path: root/bin/Makefile
blob: 299bdf27665761b0795f36f200a147e8d6d40339 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BINS = atch bri dtch hnel jrp pbcopy pbd pbpaste typo wake watch xx
CFLAGS += -Wall -Wextra -Wpedantic
LDLIBS = -lcurses -ledit -lutil

all: $(BINS)

atch: dtch
	ln -f dtch atch

pbcopy: pbd
	ln -f pbd pbcopy

pbpaste: pbd
	ln -f pbd pbpaste

clean:
	rm -f $(BINS)

link: $(BINS)
	ln -s -f $(BINS:%=$(PWD)/%) ~/.bin

unlink:
	rm -f $(BINS:%=~/.bin/%)

.gitignore: Makefile
	echo $(BINS) | tr ' ' '\n' > .gitignore

.PHONY: all clean link unlink