# Makefile for managing project documents
# Edited on July 25, 2014

# SRC = ???.txt

# Generates PDF output
pdf:
	txt2pdf 0_hmi_scada_philosophy.txt 
	txt2pdf 0_plc_control_philosophy.txt
	txt2pdf 0_vfd_settings.txt
	
	ps2pdf 0_single_line.ps
	ps2pdf 0_generator_breaker_wiring.ps
	ps2pdf 0_generator_power_wiring.ps
	ps2pdf 0_control_power_wiring.ps
	ps2pdf 0_trip_close_wiring.ps
	ps2pdf 0_panel_layout.ps
	ps2pdf 0_panel_name_labels.eps
	ps2pdf 0_panel_switch_labels.eps
	ps2pdf 0_plc_discrete_input_wiring.ps
	ps2pdf 0_plc_discrete_output_wiring.ps
	ps2pdf 0_plc_analog_output_wiring.ps
	ps2pdf 0_hmi_screen_System_Overview.ps
	
	tex 0_INST231_lab_objectives.tex
	dvips -Ppdf -o junk.ps 0_INST231_lab_objectives.dvi
	ps2pdf junk.ps 0_INST231_lab_objectives.pdf
	rm -v junk*.ps
	
	tex 0_INST232_lab_objectives.tex
	dvips -Ppdf -o junk.ps 0_INST232_lab_objectives.dvi
	ps2pdf junk.ps 0_INST232_lab_objectives.pdf
	rm -v junk*.ps

# Generates .tar file containing all project files 
archive:
	rm -v *.tar
	tar cvf lab52001.tar *
	cp -v lab52001.tar /home/tony/btc
	cp -v lab52001.tar /home/tony/btc/new





