From 44a5a5908139b462241395be4713d52eea6395d0 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Wed, 21 Jul 2004 09:39:53 +0000 Subject: [PATCH] Allow the help file path and name to be overwritten by cc -D... Also remove the current directory from the default help file path and add an appropriate directory in /usr/local instead. --- sbin/atm/atmconfig/Makefile | 1 + sbin/atm/atmconfig/private.h | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sbin/atm/atmconfig/Makefile b/sbin/atm/atmconfig/Makefile index 40134fc117e7..8317b82b8566 100644 --- a/sbin/atm/atmconfig/Makefile +++ b/sbin/atm/atmconfig/Makefile @@ -8,6 +8,7 @@ PROG= atmconfig SRCS= main.c diag.c natm.c MAN= atmconfig.8 +# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"' .if ${MACHINE_ARCH} == "arm" WARNS?= 3 diff --git a/sbin/atm/atmconfig/private.h b/sbin/atm/atmconfig/private.h index 4b1606044154..7677d6b0d4e3 100644 --- a/sbin/atm/atmconfig/private.h +++ b/sbin/atm/atmconfig/private.h @@ -42,8 +42,15 @@ #include #include -#define PATH_HELP ".:/usr/share/doc/atm" +#ifndef PATH_HELP +#define PATH_HELP "/usr/share/doc/atm:/usr/local/share/doc/atm" +#endif +#ifndef FILE_HELP #define FILE_HELP "atmconfig.help" +#endif +#ifndef FILE_HELP_OTHERS +#define FILE_HELP_OTHERS "atmconfig_*.help" +#endif /* * Builtin commands