INCLUDE pub_root:[lib.mms]include.mms .SUFFIXES : .RNH .RNH.HLP : ; $(RUNOFF) $(RFLAGS) $< DESTDIR = $(PRIVDIR) HELPLIB = PUB_ROOT:[DOC]PRIVATE.HLB NAME = CALLOUT OUTFILES = descrip.mms;,callout.hlp;,$(DESTDIR)callout.exe;,$(DESTDIR)callout.cld; PROT = $(GPROT) build : callout.exe callout.hlp $ write sys$output "$(NAME): Build finished." install : build $(DESTDIR)callout.exe $(DESTDIR)callout.cld $(HELPLIB)(callout) $ write sys$output "$(NAME): Installation finished." ! ! Assumes the following logical names and symbols: ! TAPE: - tape drive where distribution tape will be mounted. ! distfile - .com file to be executed on home system to prepare distribution ! instfile - .com file to be executed on target system to install distribution ! ! Note: this target is not meant to be used except from the distribution ! command file. distribute : $ thisdisk = f$logical("SYS$DISK") $ thisdir = f$directory() $ open/append z 'distfile $ write z "$ set default ''thisdisk'''thisdir'" $ write z "$ $(BACKUP) -" $ write z "$(OUTFILES) -" $ write z "TAPE:$(NAME).bkp/save" $ close z $ open/append y 'instfile' $ write y "$ $(BACKUP) TAPE:$(NAME).bkp ''thisdisk'[...]*.*.*" $ ! Extra distribution commands here $ close y $ write sys$output "$(NAME): Distribution finished." fixprot : $ set prot=$(PROT) $(DESTDIR)callout.exe, callout.cld $ set file/owner=[20,0] $(DESTDIR)callout.exe, callout.cld callout.obj : callout.pas $(DESTDIR)callout.exe : callout.exe $ copy $< $@ $ set prot=$(PROT) $@ $ set file/owner=[20,0] $@ $ purge $@ $(DESTDIR)callout.cld : callout.cld $ copy $< $@ $ set prot=$(PROT) $@ $ set file/owner=[20,0] $@ $ purge $@