platex = platex
dvipdfmx = dvipdfmx

# For Mac OS X and Linux
makeRoomPlates = ../bin/makeRoomPlates.py
roomNames = ../room_names.xlsx

# For Windows
#makeRoomPlates = ..\bin\makeRoomPlates.py
#roomNames = ..\room_names.xlsx

.PHONY: all
.PRECIOUS: %.inc

all: roomPlate_A3_portrait.pdf roomPoster_A3_landscape.pdf

roomNames.inc:	$(roomNames) $(makeRoomPlates)
	$(makeRoomPlates) $< >$@

roomPlate_A3_portrait.dvi: roomPlate_A3_portrait.tex roomNames.inc
	$(platex) $<

roomPoster_A3_landscape.dvi: roomPoster_A3_landscape.tex roomNames.inc
	$(platex) $<

%.pdf:	%.dvi
	$(dvipdfmx) -o $@ $<

