summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2020-12-08 04:17:32 +0300
committerEvgeny Zinoviev <me@ch1p.io>2020-12-08 04:17:32 +0300
commit7adff40839c7b840a5f71a32d95873ea89453a1e (patch)
treebccd6173b8c1ef1122c3042ca6ffda63c92f9968 /Makefile
parent34a0a81ed23d9bccf9efbe92c58c85426bf41dc8 (diff)
Makefile changes, usage message changes, README updates
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 479dbe7..15bdbd0 100644
--- a/Makefile
+++ b/Makefile
@@ -6,15 +6,13 @@ LDFLAGS =
INSTALL = /usr/bin/env install
PREFIX = /usr/local
-all: voidnsrun voidnsundo
-
test: testserver testclient
-voidnsrun: voidnsrun.o utils.o
- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+run: voidnsrun.o utils.o
+ $(CC) $(CFLAGS) -o voidnsrun $^ $(LDFLAGS)
-voidnsundo: voidnsundo.o utils.o
- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+undo: voidnsundo.o utils.o
+ $(CC) $(CFLAGS) -o voidnsundo $^ $(LDFLAGS)
testserver: test/testserver.o utils.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
@@ -22,9 +20,13 @@ testserver: test/testserver.o utils.o
testclient: test/testclient.o utils.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
-install: voidnsrun voidnsundo
- $(INSTALL) voidnsrun voidnsundo $(PREFIX)/bin
- chmod u+s $(PREFIX)/bin/voidnsrun $(PREFIX)/bin/voidnsundo
+install-run: run
+ $(INSTALL) voidnsrun $(PREFIX)/bin
+ chmod u+s $(PREFIX)/bin/voidnsrun
+
+install-undo: undo
+ $(INSTALL) voidnsundo $(PREFIX)/bin
+ chmod u+s $(PREFIX)/bin/voidnsundo
clean:
rm -f *.o test/*.o voidnsrun voidnsundo testserver testclient
@@ -32,4 +34,4 @@ clean:
%.o: %.c
$(CC) $(CFLAGS) -c $^ -I. -o $@
-.PHONY: all install clean distclean \ No newline at end of file
+.PHONY: run undo install-run install-undo clean \ No newline at end of file