aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 19:07:43 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 19:07:43 +0200
commitf7fedd90fb3f7d3110f2ff976639c7f8ec51fbad (patch)
treeb1099b364a4d3a1f90f8178b7a192c931a63bc29 /Makefile
parentSimplify (diff)
downloadxtest-f7fedd90fb3f7d3110f2ff976639c7f8ec51fbad.tar.gz
xtest-f7fedd90fb3f7d3110f2ff976639c7f8ec51fbad.tar.bz2
xtest-f7fedd90fb3f7d3110f2ff976639c7f8ec51fbad.tar.xz
Add test
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 62a0f76..9cc8113 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
CONFIGFILE = config.mk
include $(CONFIGFILE)
-all: xtest
+all: xtest mksocket
.o:
$(CC) -o $@ $^ $(LDFLAGS)
@@ -13,6 +13,9 @@ all: xtest
xtest.o: arg.h
+check: xtest mksocket
+ ./test
+
install: xtest
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
@@ -27,7 +30,7 @@ uninstall:
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/xtest"
clean:
- -rm -f -- xtest *.o
+ -rm -rf -- xtest mksocket *.o .testdir
.SUFFIXES: .o .c.o