From 87e051eb27b8386af07ae3bc6cf8792dcbd7fe29 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Aug 2013 16:04:58 +0200 Subject: [PATCH] Add a 'help' target; replace example path with $HOME --- dol_example1/Makefile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/dol_example1/Makefile b/dol_example1/Makefile index b97cf9c..a2e8a23 100644 --- a/dol_example1/Makefile +++ b/dol_example1/Makefile @@ -1,18 +1,14 @@ # Makefile to generate a DOL program -# Target List: -# all -- generate the main executable [default] -# run -- run the main executable -# systemc -- generate SystemC code and Makefile.new -# dotty -- show flattened process network -# clean -- clean all generated files +# Type 'make help' to get a list of targets. +# program to generate PROGRAM = example1 # change according to your system -DOLPATH = /home/basti/dol/bin -SYSTEMC_INC = /home/basti/systemc/include -SYSTEMC_LIB = /home/basti/systemc/lib-linux64/libsystemc.a +DOLPATH = $(HOME)/dol/bin +SYSTEMC_INC = $(HOME)/systemc/include +SYSTEMC_LIB = $(HOME)/systemc/lib-linux64/libsystemc.a # list of programs JAVA ?= java @@ -27,10 +23,19 @@ RM ?= rm # =========================================================================== CLASSPATH = $(DOLPATH)/dol.jar:$(DOLPATH)/jdom.jar:$(DOLPATH)/xercesImpl.jar -.PHONY : all run systemc dotty clean +.PHONY : all help run systemc dotty clean all: $(PROGRAM) +help: + @$(ECHO) "Target List:\n" \ + "\thelp -- show this help\n" \ + "\tall -- generate '$(PROGRAM)' [default]\n" \ + "\trun -- generate and run '$(PROGRAM)'\n" \ + "\tsystemc -- generate SystemC code, but do not compile\n" \ + "\tdotty -- show flattened process network using DOTTY\n" \ + "\tclean -- clean generated files\n" + systemc: systemc/src/Makefile.new run: $(PROGRAM) -- 2.30.2