#
# Makefile for the conference room
#

VIEW = -vf vf/current
SCENE = electric
DEV = x11
AMB = -av .02 .02 .02
OCTOPTS = -f

view:	$(SCENE).oct
	rview $(VIEW) -o $(DEV) $(AMB) $(SCENE).oct

electric.oct:	furnished.oct lights.fi lights.fo lights.ri fixture \
curtains curtain.oct
	oconv $(OCTOPTS) -i furnished.oct curtains lights.fi lights.fo \
lights.ri lights.ro > electric.oct

night.oct:	furnished.oct lights.fi lights.fo lights.ri fixture \
night.windows night.w1 night.w2
	oconv $(OCTOPTS) -i furnished.oct night.windows lights.fi \
lights.fo lights.ri lights.ro > night.oct

float.oct:	conf.oct test_light night.windows night.w1 night.w2 \
furniture.float table table.pts table.stand table.leg wastebasket waste.cal \
podium chair1.oct chair2.oct
	oconv $(OCTOPTS) -i conf.oct test_light night.windows \
furniture.float > float.oct

day.oct:	furnished.oct sky daylight.windows daylight.w1 daylight.w2
	oconv $(OCTOPTS) -i furnished.oct sky daylight.windows > day.oct

test.oct:	furnished.oct test_light night.windows night.w1 night.w2
	oconv $(OCTOPTS) -i furnished.oct night.windows test_light > test.oct

furnished.oct:	conf.oct furniture \
table table.pts table.stand table.leg \
wastebasket waste.cal \
podium \
chair1.oct chair2.oct
	oconv $(OCTOPTS) -i conf.oct furniture > furnished.oct

conf.oct:	conf \
door_jam.pts \
screws screw \
window1.frame window2.frame \
blackboard small_board pinboard \
shaft_guard \
door_closer \
exit_sign E.new X.new I.new T.new \
plate \
speaker \
extinguisher \
vent_panel vent.oct
	oconv $(OCTOPTS) -b -2 -9 -15 40 conf > conf.oct

chair1.oct:	chair1 chair1back.pts chair1angles.pts
	oconv -f chair1 > chair1.oct

chair2.oct:	chair2 chair2back.pts chair2leg.pts \
chair2arm.pts chair2seat.pts
	oconv -f chair2 > chair2.oct

curtain.oct:	curtain
	oconv -f curtain > curtain.oct

vent.oct:	vent vent.fmt
	oconv -f vent > vent.oct
