----------------------------------------------------- # Write Makefile header #------------------------------------------------------------------------------ sub write_header { my ($ofh) = @_; print $ofh <<"EOT"; #!/usr/bin/make -f #################################################################### ##### This file is automagically generated -- edit at your own risk ##### ##### Copyright (c) 1998-2010 Richard Nelson. All Rights Reserved. ##### ##### file: ${Makefile} Makefile for Sendmail databases ##### generated via: (${interp_pgm} ${interp_vrm}) ##### ${main::program_name} ##### version: ${main::program_version} ${main::program_date} ##### by: ${user}\@${hostname} ##### on: ${current_time} ##### in: ${directory} ##### input files: ${Parse_mc::database_file} ##### ##### Usage: ##### 1) Make all targets upto date - use one of the following: ##### A) \`(cd /etc/mail && make)\` ##### B) \`make -f ${Makefile}\` ##### C) \`${Makefile}\` ##### 2) Force update of - Add to one of the ##### prior commands ie, \`${Makefile} access\`. Most ##### any reasonable value is accepted. ##### #################################################################### SHELL=/bin/sh # # targets that will be routed to the /etc/init.d/sendmail script # NOTE: newaliases and clean removed due to extant rules # INIT = start stop restart restart-if-running \\ reload-if-running reload force-reload \\ hoststat purgestat mailstats mailq runq control \\ status debug .SUFFIXES: .PRECIOUS: $Makefile # # all, the default target, will update everything # .PHONY: all all: sendmail $reload_stamp # # route to the /etc/init.d/sendmail script # .PHONY: \$(INIT) \$(INIT): FORCE /etc/init.d/sendmail \$\@ EOT }; #