#
# Makefile for config subdirectory
#
-# $Id$
-#
# nmh version
VERSION = @VERSION@
libdir = @libdir@
etcdir = @sysconfdir@
-default_editor = @editorpath@
-default_pager = @pagerpath@
+sendmailpath = @sendmailpath@
+mailspool = @mailspool@
CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
-INCLUDES = -I.. -I$(top_srcdir)
-CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
- -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"'
+# add include dir .. for config.h when building in different directory
+INCLUDES = -I$(top_srcdir) -I.. @CPPFLAGS@
+CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' \
+ -DSENDMAILPATH='"$(sendmailpath)"' \
+ -DMAILSPOOL='"$(mailspool)"'
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
# object files
OBJS = config.o version.o
-# auxiliary files
-AUX = Makefile.in version.sh
-
-# all files in this directory included in the distribution
-DIST = $(SRCS) $(AUX)
-
# ========= DEPENDENCIES FOR BUILDING ==========
all: $(OBJS)
${srcdir}/version.sh $(VERSION) > version.c
config.o: config.c
- $(COMPILE2) $<
+ $(COMPILE2) $(srcdir)/config.c
install:
uninstall:
+lint:
+
# ========== DEPENDENCIES FOR CLEANUP ==========
mostlyclean:
subdir = config
Makefile: Makefile.in ../config.status
- cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
-
-distdir = ../`cat ../distname`/$(subdir)
-nmhdist: $(DIST)
- @echo "Copying distribution files in $(subdir)"
- @for file in $(DIST); do \
- cp -p $(srcdir)/$$file $(distdir); \
- done
+ cd .. && ./config.status $(subdir)/$@