Question
Unix/Makefile Homework Your impressive work at your internship has won you a return offer at the Galactic Empire. You were but the student; now you
Unix/Makefile Homework
Your impressive work at your internship has won you a return offer at the Galactic Empire. You were but the student; now you are the master! You are responsible for all Imperial Vehicless software reliability. The vehicle classes include:
ATAT.java
ATST.java
DeathStar.java
ImperialShuttle.java
StarDestroyer.java
TIEBomber.java
TIEFighter.java
For each of these classes, there is a Tester class that contains all unit tests for the corresponding vehicle named as (Vehicle)Tester.java, where (Vehicle) can be replaced by any of the vehicle class name. Write a Makefile that does the following:
When make (Vehicle).class is typed in, the corresponding vehicle class is built, only if its Java source file has been updated since the last time it was built.
When make or make vehicles is typed in, each vehicle class will be built (ATAT.class, ATST.class, etc.) if the corresponding Java source file has been updated since the last time that class was built.
When make (Vehicle)Tester.class is typed in, the corresponding tester class is built, if (Vehicle).java or (Vehicle)Tester.java has been updated since the last time the tester was built.
When make tests is typed in, all tester classes will be built (ATATTester.class, ATSTTester.class, etc.), if the corresponding Java source file for that tester or the tested vehicle has been updated since the last time the tester was built.
When type in make clean, all class files will be removed.
HINTS:
Declare variables for your classes to try and organize your code
Make sure you understand the relationship between targets and dependencies
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started