2 # Makefile for config subdirectory
12 top_srcdir = @top_srcdir@
17 exec_prefix = @exec_prefix@
22 default_editor = @editorpath@
23 default_pager = @pagerpath@
28 INCLUDES = -I.. -I$(top_srcdir)
29 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
30 -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"'
32 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
33 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
45 OBJS = config.o version.o
48 AUX = Makefile.in version.sh
50 # all files in this directory included in the distribution
53 # ========= DEPENDENCIES FOR BUILDING ==========
58 ${srcdir}/version.sh $(VERSION) > version.c
69 # ========== DEPENDENCIES FOR CLEANUP ==========
84 # ========== DEPENDENCIES FOR MAINTENANCE ==========
88 Makefile: Makefile.in ../config.status
89 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
91 distdir = ../`cat ../distname`/$(subdir)
93 @echo "Copying distribution files in $(subdir)"
94 @for file in $(DIST); do \
95 cp -p $(srcdir)/$$file $(distdir); \