2 # Makefile for config subdirectory
10 top_srcdir = @top_srcdir@
15 exec_prefix = @exec_prefix@
20 default_editor = @editorpath@
21 default_pager = @pagerpath@
26 INCLUDES = -I.. -I$(top_srcdir) @CPPFLAGS@
27 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
28 -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"'
30 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
31 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
43 OBJS = config.o version.o
46 AUX = Makefile.in version.sh
48 # all files in this directory included in the distribution
51 # ========= DEPENDENCIES FOR BUILDING ==========
56 ${srcdir}/version.sh $(VERSION) > version.c
59 $(COMPILE2) $(srcdir)/config.c
67 # ========== DEPENDENCIES FOR CLEANUP ==========
82 # ========== DEPENDENCIES FOR MAINTENANCE ==========
86 Makefile: Makefile.in ../config.status
87 cd .. && ./config.status $(subdir)/$@
89 distdir = ../`cat ../distname`/$(subdir)
91 @echo "Copying distribution files in $(subdir)"
92 @for file in $(DIST); do \
93 cp -p $(srcdir)/$$file $(distdir); \