Question: all given Java files have no code Makefile Your Impressive work at your Internshilp has won you a retum ofter at the Galactic Empire. You

all given Java files have no code
Makefile Your Impressive work at your Internshilp has won you a retum ofter at the Galactic Empire. You were but the student; now you are the master! You are responsible tor all Imperial Vehicles's software reliablity. 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)TesLer.java, where (Vehicle) can be replaced by any of the vehicle class name. Write a Makefile that does the following: 1. When make (Vehicle).rlass 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. 2. When make or naks vohicles is typed in, each vehicle class will be built (ATAT.class, ATST.class, etc.) if the correspanding Java source file has been updated since the last time that class was built. 3. When make (Vchiclo)Taster.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. 4. When makc tests is typed in, al tester classes will be buit (ATATTester.class, ATSTTester.class, etc.), it the corresponding Java source file for that tester or the tested vehicle has been updated since the last time the tester as bult. 5. When type In make clean, all class flles will be removed. HINTS 1. Declare variables for your classes to try and organize your code 2. Make sure you understand the relationship between targets and dependencies Remark There are multiple ways to do this assignmentl Make sure to test it. One common error is that students compile every file when they don't necessarily have to. For example, if we only change DeathStar.java, and we enter 'make vehicles," then we should ONLY update DeathStar.class since DeathStar.class fle is now the only file out of date. You should NOT be recompling every single file. Makefile Your Impressive work at your Internshilp has won you a retum ofter at the Galactic Empire. You were but the student; now you are the master! You are responsible tor all Imperial Vehicles's software reliablity. 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)TesLer.java, where (Vehicle) can be replaced by any of the vehicle class name. Write a Makefile that does the following: 1. When make (Vehicle).rlass 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. 2. When make or naks vohicles is typed in, each vehicle class will be built (ATAT.class, ATST.class, etc.) if the correspanding Java source file has been updated since the last time that class was built. 3. When make (Vchiclo)Taster.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. 4. When makc tests is typed in, al tester classes will be buit (ATATTester.class, ATSTTester.class, etc.), it the corresponding Java source file for that tester or the tested vehicle has been updated since the last time the tester as bult. 5. When type In make clean, all class flles will be removed. HINTS 1. Declare variables for your classes to try and organize your code 2. Make sure you understand the relationship between targets and dependencies Remark There are multiple ways to do this assignmentl Make sure to test it. One common error is that students compile every file when they don't necessarily have to. For example, if we only change DeathStar.java, and we enter 'make vehicles," then we should ONLY update DeathStar.class since DeathStar.class fle is now the only file out of date. You should NOT be recompling every single file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
