Robert Harker Technical Wiki
Thoughts and Ideas About Large Sites

[ Prev ] [ Index ] [ Next ]


Makefile

TOPIC

#
# Makefile for configuration files.
#

# directory for .cf files
MAILDIR=/etc/mail
CFDIR= ..
SED= sed
ECHO= echo
CHMOD= chmod
ROMODE= 444
RM= rm -f
CFOWN=root
CFGRP=bin
CFMODE=0444

.SUFFIXES: .main .html

.main.html:

-mv -f $@ $@.old
$(M4) ${CFDIR}/m4/main.m4 $*.main > $@ || ( $(RM) $@ && exit 1 )
$(CHMOD) $(ROMODE) $@
-diff $@.old $@
$(RM) $@.old

ALL= \

advanced-out.html

all: $(ALL)

clean cleandir:

$(RM) $(ALL) core

install: advanced-out.html

$(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(CF).cf ${DESTDIR}$(MAILDIR)/sendmail.cf

depend:

# this is overkill, but....
M4FILES=\

${CFDIR}/m4/footer.m4

$(ALL): $(M4FILES)


Backlinks: index Start
Created with Zim desktop wiki