summary refs log tree commit diff homepage
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-08-31 01:00:02 -0400
committerJune McEnroe <programble@gmail.com>2017-08-31 01:00:02 -0400
commitccf62ec6e3bbf785928962223221eefc8cfef653 (patch)
tree2eb8146e2f9391c4011a93f73968294447a8a5cd /Makefile
parentUse only foreground color for selecting spawn (diff)
downloadtorus-ccf62ec6e3bbf785928962223221eefc8cfef653.tar.gz
torus-ccf62ec6e3bbf785928962223221eefc8cfef653.zip
Add quick data file merge tool
Hopefully I won't have to use it ever again.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 87b37f6..0be6b77 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 USER = torus
 
-all: server client help meta
+all: server client help meta merge
 
 server: server.c torus.h
 	$(CC) -Wall -Wextra -Wpedantic $(CFLAGS) -o server server.c
@@ -14,13 +14,16 @@ help: help.c torus.h
 meta: meta.c torus.h
 	$(CC) -Wall -Wextra -Wpedantic $(CFLAGS) -o meta meta.c
 
+merge: merge.c torus.h
+	$(CC) -Wall -Wextra -Wpedantic $(CFLAGS) -lcurses -o merge merge.c
+
 termcap: termcap.diff
 	patch -p0 -o termcap < termcap.diff
 
 termcap.db: termcap
 	cap_mkdb termcap
 
-chroot.tar: server client help meta termcap.db
+chroot.tar: server client help termcap.db
 	mkdir -p root
 	install -d -o root -g wheel \
 	    root/bin \
@@ -40,10 +43,10 @@ chroot.tar: server client help meta termcap.db
 	    root/lib
 	install -o root -g wheel -m 444 termcap.db root/usr/share/misc
 	install -o root -g wheel -m 555 /bin/sh root/bin
-	install -o root -g wheel -m 555 server client help meta root/bin
+	install -o root -g wheel -m 555 server client help root/bin
 	tar -c -f chroot.tar -C root bin home lib libexec usr
 
 clean:
-	rm -f server client help meta termcap termcap.db chroot.tar
+	rm -f server client help meta merge termcap termcap.db chroot.tar
 
 .PHONY: all clean