Exporta DOCDIR para o código para que busque os arquivos de ajuda no
local em que foram instalados.
+AM_CPPFLAGS = -DDOCDIR=\"'$(docdir)'\"
+
noinst_LTLIBRARIES = libreceita.la
libreceita_la_SOURCES = declaracao.c declaracao.h \
token.c token.h \
noinst_LTLIBRARIES = libreceita.la
libreceita_la_SOURCES = declaracao.c declaracao.h \
token.c token.h \
#include "cmd.h"
#include "util.h"
#include "cmd.h"
#include "util.h"
-static const char *helpdir = "help";
+#ifndef DOCDIR
+#define DOCDIR "help"
+#endif
+
+static const char *helpdir = DOCDIR;
static int run_help(struct declaracao *dec, char **args, int argc)
{
static int run_help(struct declaracao *dec, char **args, int argc)
{