diff options
author | June McEnroe <june@causal.agency> | 2017-09-06 14:01:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-09-06 14:01:48 -0400 |
commit | 29877b7b775a0b7dc329c2fe191b8d04eb94aa54 (patch) | |
tree | 652ec1da8df4354953897baf9c474d374e133edf /bin/Makefile | |
parent | Pass final NULL to execlp (diff) | |
download | src-29877b7b775a0b7dc329c2fe191b8d04eb94aa54.tar.gz src-29877b7b775a0b7dc329c2fe191b8d04eb94aa54.zip |
Move C code to bin, Makefile, AGPL
Diffstat (limited to 'bin/Makefile')
-rw-r--r-- | bin/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile new file mode 100644 index 00000000..62a50309 --- /dev/null +++ b/bin/Makefile @@ -0,0 +1,36 @@ +BINS = atch bri dtch hnel jrp pbcopy pbd pbpaste wake watch xx +CWARNS = -Wall -Wextra -Wpedantic + +all: $(BINS) + +%: %.c + $(CC) $(CWARNS) $(CFLAGS) -o $@ $< + +atch: dtch + ln -f dtch atch + +dtch: dtch.c + $(CC) $(CWARNS) $(CFLAGS) -lutil -o dtch dtch.c + +hnel: hnel.c + $(CC) $(CWARNS) $(CFLAGS) -lutil -o hnel hnel.c + +jrp: jrp.c + $(CC) $(CWARNS) $(CFLAGS) -ledit -o jrp jrp.c + +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/%) + +.PHONY: all clean link unlink |