M4= m4 CFDIR= /usr/src/sendmail-8.12.5/cf CHMOD= chmod ROMODE= 444 RM= rm -f .SUFFIXES: .mc .cf all: virtusers.db aliases.db access.db access.db: access.txt makemap -v hash access < access.txt aliases.db: aliases newaliases virtusers.db: virtusers.txt makemap -v hash virtusers < virtusers.txt .mc.cf: $(RM) $@ $(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@ || ( $(RM) $@ && exit 1 ) $(CHMOD) $(ROMODE) $@
# # Makefile to push *.conf to the slave, as needed. # SLAVE= www2.oreillynet.com APACHE= /usr/local/apache RM= /bin/rm TOUCH= /bin/touch SSH= /usr/local/bin/ssh SCP= /usr/local/bin/scp .SUFFIXES: .conf .ts all: test restart sites.ts globals.ts httpd.ts configtest: test test: @echo -n "Testing Apache configuration: " @$(APACHE)/bin/apachectl configtest restart: $(APACHE)/bin/apachectl restart .conf.ts: @$(RM) -f $@ @$(SCP) $*.conf $(SLAVE):$(APACHE)/conf @$(SSH) $(SLAVE) $(APACHE)/bin/apachectl restart @$(TOUCH) $@
O'Reilly Home | Privacy Policy © 2007 O'Reilly Media, Inc. Website: | Customer Service: | Book issues:
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.