summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-01-23 23:56:38 +0100
committerAlbert Cervin <albert@acervin.com>2023-01-23 23:56:38 +0100
commit9a2b138a03e27d0f04101fe6ae3977d79518c513 (patch)
tree113fe14c15e93872e0fe8b6d7a4e56ed3398b375 /common.mk
parent9eda570311ffd292d333f7687074403ff46cc838 (diff)
downloaddged-9a2b138a03e27d0f04101fe6ae3977d79518c513.tar.gz
dged-9a2b138a03e27d0f04101fe6ae3977d79518c513.tar.xz
dged-9a2b138a03e27d0f04101fe6ae3977d79518c513.zip
Add more tests and documentation
Both doxygen and man page
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 72c0942..7efc408 100644
--- a/common.mk
+++ b/common.mk
@@ -8,7 +8,8 @@ SOURCES = src/binding.c src/buffer.c src/command.c src/display.c \
src/utf8.c src/buffers.c src/window.c
DGED_SOURCES = $(SOURCES) src/main.c
-TEST_SOURCES = test/assert.c test/buffer.c test/text.c test/utf8.c test/main.c
+TEST_SOURCES = test/assert.c test/buffer.c test/text.c test/utf8.c test/main.c \
+ test/command.c
prefix != if [ -n "$$prefix" ]; then echo "$$prefix"; else echo "/usr"; fi
@@ -64,7 +65,14 @@ debug-tests: run-tests
clean:
rm -f $(FILES)
+ rm -rf docs
install: dged
install -d $(prefix)/bin
install -m 755 dged $(prefix)/bin/dged
+
+ install -d $(prefix)/share/man/man1
+ install -m 644 dged.1 $(prefix)/share/man/man1/dged.1
+
+docs:
+ doxygen Doxyfile