INCLUDE pub$root:[lib.mms]include.mms HELPLIB = pub$root:[doc]public.hlb NAME = EVE_EDT DESTDIR = $(PUBDIR) PROT = $(WPROT) OUTFILES = descrip.mms;,$(DESTDIR)eve_edtsecini.tpu$section;,- sys$common:[syshlp]eve_edthelp.hlb,$(DESTDIR)kept_tpu.com build : eve_edtsecini.tpu$section $ write sys$output "$(NAME): Build finished." install : build $(DESTDIR)eve_edtsecini.tpu$section $(DESTDIR)kept_tpu.com - sys$help:eve_edthelp.hlb(eve_edt) $(HELPLIB)(eve_edt) $ 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 $ write y "$ library/help $(HELPLIB) ''thisdisk'''thisdir'calendar" $ close y $ write sys$output "$(NAME): Distribution finished." fixprot : $ set prot=$(PROT) $(DESTDIR)eve_edtsecini.tpu$section $ set file/owner=parent $(DESTDIR)eve_edtsecini.tpu$section $ set prot=$(PROT) sys$help:eve_edthelp.hlb $ set file/owner=parent sys$help:eve_edthelp.hlb eve_edtsecini.tpu$section : eve_edtsecini.tpu $ edit/tpu/nodisplay/nosection/command=$< $(DESTDIR)eve_edtsecini.tpu$section : eve_edtsecini.tpu$section $ copy $< $@ $ set prot=$(WPROT) $@ $ set file/owner=parent $@ $ purge $@ $(DESTDIR)kept_tpu.com : kept_tpu.com $ copy $< $@ $ set prot=$(WPROT) $@ $ set file/owner=parent $@ $ purge $@