view support/general/Makefile @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children 441a2190cfae
line wrap: on
line source

##############################################################################
#    Instructions to Make, for general support processes
#
#	This file is automatically generated.  Do not edit!
# @(#)$Id$
##############################################################################

# The following entries were inserted during MH configuration
BINDIR  =	$(DESTDIR)/usr/local/mh/bin
ETCDIR	=	$(DESTDIR)/usr/local/mh/lib
IOPTMIME=	inst-mhndefs inst-viamail inst-pgpmime
IOPTMIME=	inst-mhndefs inst-viamail
UOPTMIME=	mhn_defaults viamail
TOPTMIME=	mhn_defaults viamail
REMOVE	=	mv -f
FILPROT	=	0644
PGMPROT	=	0755
CP      =       cp

TALL	=	MailAliases components digestcomps distcomps forwcomps \
		rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
		mhl.body mhl.headers scan.default scan.mailx scan.size \
		scan.time scan.timely packmbox $(TOPTMISC) $(TOPTMIME)


##############################################################################
#	Generate miscellaneous stuff
##############################################################################

all:;

depend:;

lint:;

install:	inst-all clean

inst-all:	inst-aliases inst-components inst-digestcomps inst-distcomps \
		inst-forwcomps inst-rcvdistcomps inst-replcomps inst-digest \
		inst-format inst-forward inst-body inst-headers inst-mailx \
		inst-default inst-size inst-time inst-timely \
		inst-packmbox $(IOPTMISC) $(IOPTMIME)

tar:;		@touch $(TALL)
		@make -n inst-all > MAKEGEN
		@chmod +x MAKEGEN
		tar $(TFLAGS) MAKEGEN $(TALL)
		@rm -f MAKEGEN


uninstall:;	cd $(ETCDIR); \
		rm -f MailAliases components digestcomps distcomps forwcomps \
		    rcvdistcomps replcomps mhl.digest mhl.format mhl.forward \
		    mhl.body mhl.headers scan.default scan.mailx scan.size \
		    scan.time scan.timely viamail packmbox \
		    $(UOPTMISC) $(UOPTMIME)


##############################################################################
#	Individual components
##############################################################################

inst-aliases:	$(ETCDIR)/MailAliases

$(ETCDIR)/MailAliases:	MailAliases
		-@if [ ! -f $@ ]; then \
		    $(REMOVE) $@ zMailAliases; \
		    $(CP) MailAliases $@; \
		else \
		    echo "Will not overwrite existing $@"; \
		fi
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-components:	$(ETCDIR)/components

$(ETCDIR)/components:	components
		-$(REMOVE) $@ zcomponents
		$(CP) components $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-digestcomps:	$(ETCDIR)/digestcomps

$(ETCDIR)/digestcomps:	digestcomps
		-$(REMOVE) $@ zdigestcomps
		$(CP) digestcomps $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-distcomps:	$(ETCDIR)/distcomps

$(ETCDIR)/distcomps:	distcomps
		-$(REMOVE) $@ zdistcomps
		$(CP) distcomps $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-forwcomps:	$(ETCDIR)/forwcomps

$(ETCDIR)/forwcomps:	forwcomps
		-$(REMOVE) $@ zforwcomps
		$(CP) forwcomps $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-rcvdistcomps:	$(ETCDIR)/rcvdistcomps

$(ETCDIR)/rcvdistcomps:	rcvdistcomps
		-$(REMOVE) $@ zrcvdistcomps
		$(CP) rcvdistcomps $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-replcomps:	$(ETCDIR)/replcomps

$(ETCDIR)/replcomps:	replcomps
		-$(REMOVE) $@ zreplcomps
		$(CP) replcomps $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-digest:	$(ETCDIR)/mhl.digest

$(ETCDIR)/mhl.digest:	mhl.digest
		-$(REMOVE) $@ zmhl.digest
		$(CP) mhl.digest $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-format:	$(ETCDIR)/mhl.format

MHL_FORMAT= mhl.format
MHL_FORMAT= mhl.format.hdecode

$(ETCDIR)/mhl.format:	$(MHL_FORMAT)
		-$(REMOVE) $@ zmhl.format
		$(CP) $(MHL_FORMAT) $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-forward:	$(ETCDIR)/mhl.forward

$(ETCDIR)/mhl.forward:	mhl.forward
		-$(REMOVE) $@ zmhl.forward
		$(CP) mhl.forward $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-body:	$(ETCDIR)/mhl.body

$(ETCDIR)/mhl.body:	mhl.body
		-$(REMOVE) $@ zmhl.body
		$(CP) mhl.body $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-headers:	$(ETCDIR)/mhl.headers

MHL_HEADERS= mhl.headers
MHL_HEADERS= mhl.headers.hdecode

$(ETCDIR)/mhl.headers:	$(MHL_HEADERS)
		-$(REMOVE) $@ zmhl.headers
		cp $(MHL_HEADERS) $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-default:	$(ETCDIR)/scan.default

$(ETCDIR)/scan.default:	scan.default
		-$(REMOVE) $@ zscan.default
		$(CP) scan.default $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""

inst-mailx:	$(ETCDIR)/scan.mailx

$(ETCDIR)/scan.mailx:	scan.mailx
		-$(REMOVE) $@ zscan.mailx
		$(CP) scan.mailx $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-size:	$(ETCDIR)/scan.size

$(ETCDIR)/scan.size:	scan.size
		-$(REMOVE) $@ zscan.size
		$(CP) scan.size $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-time:	$(ETCDIR)/scan.time

$(ETCDIR)/scan.time:	scan.time
		-$(REMOVE) $@ zscan.time
		$(CP) scan.time $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-timely:	$(ETCDIR)/scan.timely

$(ETCDIR)/scan.timely:	scan.timely
		-$(REMOVE) $@ zscan.timely
		$(CP) scan.timely $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-packmbox:	$(ETCDIR)/packmbox

$(ETCDIR)/packmbox:	packmbox.sh
		-$(REMOVE) $@ zpackmbox.sh
		cp packmbox.sh $@
		-@chmod $(PGMPROT) $@
		-@ls -l $@
		-@echo ""


inst-bboards:	$(ETCDIR)/BBoardAliases

$(ETCDIR)/BBoardAliases:	BBoardAliases
		-@if [ ! -f $@ ]; then \
		    $(REMOVE) $@ zBBoardAliases; \
		    $(CP) BBoardAliases $@; \
		else \
		    echo "Will not overwrite existing $@"; \
		fi
		-@chmod $(FILPROT) $@
		-chown $(BBUID) $@
		-@ls -l $@
		-@echo ""


inst-viamail:	$(ETCDIR)/viamail

$(ETCDIR)/viamail:	viamail.sh
		-$(REMOVE) $@ zviamail.sh
		cp viamail.sh $@
		-@chmod $(PGMPROT) $@
		-@ls -l $@
		-@echo ""


inst-mhndefs:	$(ETCDIR)/mhn_defaults

$(ETCDIR)/mhn_defaults:	true
		-$(REMOVE) $@ zmhn_defaults
		-@echo "Will merge mhn_defaults into existing $@"
		-@./bootmhn.sh $(ETCDIR)
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""


inst-pgpmime:	$(ETCDIR)/pgped.tcl $(BINDIR)/pgped $(BINDIR)/pgpshow

$(ETCDIR)/pgped.tcl:	pgped.tcl
		-$(REMOVE) $@ zpgped.tcl
		cp pgped.tcl $@
		-@chmod $(FILPROT) $@
		-@ls -l $@
		-@echo ""

$(BINDIR)/pgped:	pgped.sh
		-$(REMOVE) $@ zpgped.sh
		sed -e 's%@LIB%$(ETCDIR)%' < pgped.sh > $@
		-@chmod $(PGMPROT) $@
		-@ls -l $@
		-@echo ""

$(BINDIR)/pgpshow:	pgpshow.sh
		-$(REMOVE) $@ zpgpshow.sh
		cp pgpshow.sh $@
		-@chmod $(PGMPROT) $@
		-@ls -l $@
		-@echo ""


##############################################################################
#	Miscellaneous tasks
##############################################################################

unconfig:	distribution
		-rm -f Makefile

distribution:	clean
		-rm -f MailAliases

clean:		unclean
		-rm -f x*

unclean:;	-rm -f z* _* :* core *.core MAKEGEN

true:;