aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 45e858cf..d751b1a5 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,14 @@ endif
# Expansion of variables
subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
-all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
- $(MAKE) -C doc
+all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) doc systemd
ifdef SKYPE_PI
$(MAKE) -C protocols/skype doc
endif
+doc:
+ $(MAKE) -C doc
+
uninstall: uninstall-bin uninstall-doc
@echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n'
@@ -42,7 +44,7 @@ install: install-bin install-doc install-plugins install-systemd
.PHONY: install install-bin install-etc install-doc install-plugins install-systemd \
uninstall uninstall-bin uninstall-etc uninstall-doc \
- all clean distclean tar $(subdirs)
+ all clean distclean tar $(subdirs) doc
Makefile.settings:
@echo
@@ -188,5 +190,12 @@ ctags:
helloworld:
@echo Hello World
+# Check if we can load the helpfile. (This fails if some article is >1KB.)
+# If print returns a NULL pointer, the file is unusable.
+testhelp: doc
+ gdb --eval-command='b main' --eval-command='r' \
+ --eval-command='print help_init(&global->helpfile, "doc/user-guide/help.txt")' \
+ $(OUTFILE) < /dev/null
+
-include .depend/*.d
# DO NOT DELETE