Question
Java and Bash Script via VIM In a file called makefile , write the following targets: 1. Download https://www.dropbox.com/s/42frcghjskw7gcy/HelloWorld123.java?dl=0 2. write a compile target called
Java and Bash Script via VIM In a file called makefile, write the following targets:
1. Download https://www.dropbox.com/s/42frcghjskw7gcy/HelloWorld123.java?dl=0 2. write a compile target called HelloWorld123.class 3. write a target called run that runs the class file (java HelloWorld123) Add the appropriate dependency to the target 4. write a target called clean that deletes the class file 5. which of the above targets should we suppress output on? Make them do that 6. which of the above targets should we ignore intermediate failures? Make them do that 7. which of the above targets should we make .PHONY? Make them .PHONY
In a file called makejava, write the following targets: 1. write a compile target that compiles a generic java file (i.e. it uses pattern matching so you can specify an arbitrary class. 2. write a target that runs a generic java class 3. write a target called clean that deletes ALL class files in the current directory 4. handle suppressing output, continuing on intermediate failures, and PHONY as in the previous question The above program should be run as: make -f makejava abc Which will have abc.java compiled and run.
Please explain each step!
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