1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
#
# Makefile for config subdirectory
#
# $Id: Makefile.in,v 1.1.1.1 1999/04/30 18:08:34 doug Exp $
#
# nmh version
VERSION = @VERSION@
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
etcdir = @sysconfdir@
default_editor = @editorpath@
default_pager = @pagerpath@
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)"'
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(COMPILE) $<
# source files
SRCS = config.c
# 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)
version.c:
${srcdir}/version.sh $(VERSION) > version.c
config.o: config.c
$(COMPILE2) $<
install:
uninstall:
# ========== DEPENDENCIES FOR CLEANUP ==========
mostlyclean:
rm -f *.o *~
clean: mostlyclean
rm -f version.c
distclean: clean
rm -f Makefile
realclean: distclean
superclean: realclean
# ========== DEPENDENCIES FOR MAINTENANCE ==========
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
|