Question: QUESTION 3: GNU MAKE FILE Write a make file that handles this situation A programmer has the following project she wants to compile using make

 QUESTION 3: GNU MAKE FILE Write a make file that handles

QUESTION 3: GNU MAKE FILE Write a make file that handles this situation A programmer has the following project she wants to compile using make main.c and main.h where main.c includes library.h, menu.h, order.h, report.h library.c and library.h menu.c and menu.h order.c and order.h where order.c includes menu.h, library.h report.c and report.h where report.c includes library.h The programmer also wants a target to backup all the .c and .h files into a sub- directory named backup. The directory is created within the current directory if it does not already exist. All the files are copied without prompting the user to confirm the copy of each file or the creation of the directory The programmer also wants a target to TAR all the files in the backup directory All the files within the backup directory are TAR'ed within the backup directory using the name backup.tar. If that TAR file already exists it is overwritten without prompting the user. Then all the .c and .h files are deleted from within the backup directory. If the backup directory does not exist then a message is displayed saying "Backup directory does not exist, nothing was TAR'ed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!