wmmaildefsdir = $(wmmaildir)/Defaults

wmmaildefs_DATA = WMMail

EXTRA_DIST = $(wmmaildefs_DATA) WMMail.in

CLEANFILES = $(wmmaildefs_DATA)

WMMail: $(srcdir)/WMMail.in ./Makefile
	-rm -f WMMail
	sed -e "s:#wmmaildir#:$(wmmaildir):" -e "s://:/:" \
		$(srcdir)/WMMail.in > WMMail ; \
	chmod 644 WMMail


syntax highlighted by Code2HTML, v. 0.9.1