From: W. Trevor King Date: Fri, 12 Oct 2012 18:44:25 +0000 (-0400) Subject: Makefile: add SCRIPTS for non-compiled scripts. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=78ddb27db7fcecaddb83d7b5c39cc527a41f7b1a;p=assignment-template.git Makefile: add SCRIPTS for non-compiled scripts. These scripts will be distributed, but not cleaned up. This is useful if running your package is too complicated to wedge into the Makefile, and you want to pull it out into run.sh or whatever. --- diff --git a/Makefile b/Makefile index 198c02e..2316c1d 100644 --- a/Makefile +++ b/Makefile @@ -25,12 +25,13 @@ PACKAGE = hw0 VERSION = 1 RELEASE = $(COURSE)-$(PACKAGE)-$(VERSION) RUN_PROGRAM = hello_world +SCRIPTS = C_PROGRAMS = hello_world CXX_PROGRAMS = goodbye_world PROGRAMS = $(C_PROGRAMS) $(CXX_PROGRAMS) # Define the source files that will be distributed in the tarball -SOURCE = *.c *.cpp *.h COPYING Makefile README +SOURCE = *.c *.cpp *.h COPYING Makefile README $(SCRIPTS) # Define a list of object files needed to link PROGRAM. We're setting # things up here so that a program % depends on the object file %.o.