PART = /z
ROOT = zeus
SYSTEM = system

PROG = $(PART)/unitex/unitex $(PART)/unitex/ut_que $(PART)/unitex/ut_qh \
$(PART)/unitex/ut_conf $(PART)/unitex/ut_rs $(PART)/unitex/ut_dis \
$(PART)/unitex/ut_from  $(PART)/unitex/ut_agbuild \
$(PART)/unitex/ut_agde

DEMO = $(PART)/unitex/unitex $(PART)/unitex/ut_que $(PART)/unitex/ut_qh \
$(PART)/unitex/ut_conf $(PART)/unitex/ut_dis $(PART)/unitex/ut_from \
$(PART)/unitex/demo_inst $(PART)/unitex/simrec \
$(PART)/unitex/ut_agbuild $(PART)/unitex/ut_agde

IX44PROG = $(PART)/unitex/ix44_start 

SCRIPTS = $(PART)/unitex/ut_start $(PART)/unitex/install 

FILES = $(PART)/unitex/termcap.ut    

HELP_FILES = $(PART)/unitex/help/*.HLP
MSG_FILES = $(PART)/unitex/msg/*.MSG  $(PART)/unitex/msg/IX44WORDS
RC_FILE = $(PART)/unitex/MENU.RC

tape:
	chown  $(ROOT) $(PROG) $(SCRIPTS) $(IX44PROG) $(FILES) $(HELP_FILES) $(MSG_FILES) $(RC_FILE)
	chgrp  $(SYSTEM) $(PROG) $(SCRIPTS) $(IX44PROG) $(FILES) $(HELP_FILES) $(MSG_FILES) $(RC_FILE)
	chmod  0711 $(PROG) $(IX44PROG)
	chmod  0755 $(SCRIPTS)
	chmod  0644 $(HELP_FILES)
	chmod  0644 $(MSG_FILES)
	chmod  0644 $(RC_FILE)

	chmod  4711 $(PART)/unitex/unitex $(PART)/unitex/ut_rs 
	tar cv $(PROG) $(SCRIPTS) $(IX44PROG) $(FILES) $(HELP_FILES) $(MSG_FILES) $(RC_FILE)
ix44:
	chown $(ROOT) $(PART)/unitex/ix44.sys
	chgrp $(SYSTEM)  $(PART)/unitex/ix44.sys
	chmod 0711 $(PART)/unitex/ix44.sys
	tar cv $(PART)/unitex/ix44.sys
demo_tape:
	tar cv $(DEMO) $(HELP_FILES) $(MSG_FILES) $(RC_FILE)

run:
	cp install makefile ut_start $(PART)/unitex

tar:
	tar cvf inst.tar *
