#**************************************************************
#This is a fairly straightforward makefile... :)
#It however assumes that Oracle has been properly set up
#on your machine.

USERNAME = jag
PASSWORD = jag

#DO NOT CHANGE ANYTHING BEYOND THIS LINE
#**************************************************************


Run: 
	sqlplus -s ${USERNAME}/${PASSWORD} @TJoin.SQL

PerfAll: Perf10 Perf20 Perf40 Perf100 Perf200 Perf400 Perf1000 Perf2000 Perf4000 Perf10000 Perf20000

Perf10:
	sed -e 's/emp10/Emp10/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL

Perf20:
	sed -e 's/emp10/Emp20/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf40:
	sed -e 's/emp10/Emp40/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf100:
	sed -e 's/emp10/Emp100/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf200:
	sed -e 's/emp10/Emp200/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf400:
	sed -e 's/emp10/Emp400/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf1000:
	sed -e 's/emp10/Emp1000/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf2000:
	sed -e 's/emp10/Emp2000/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf4000:
	sed -e 's/emp10/Emp4000/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf10000:
	sed -e 's/emp10/Emp10000/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL


Perf20000:
	sed -e 's/emp10/Emp20000/g' PerfJoin.SQL > temp.SQL   
	sqlplus -s ${USERNAME}/${PASSWORD} @temp.SQL
	rm temp.SQL
