#
# Makefile for config subdirectory
#
# $Id: Makefile.in,v 1.3 2005/11/08 16:51:36 opk 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:

lint:

# ========== 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.status $(subdir)/$@
 
distdir = ../`cat ../distname`/$(subdir)
nmhdist: $(DIST)
	@echo "Copying distribution files in $(subdir)"
	@for file in $(DIST); do \
	  cp -p $(srcdir)/$$file $(distdir); \
	done



syntax highlighted by Code2HTML, v. 0.9.1