2 MCS_FLAGS = --target exe
3 INSTALL = /usr/bin/install
9 -rm -rf $(PROGRAM) .response-exe .makefrag-exe
11 .response-exe: $(PROGRAM_LIST)
12 cat $^ |egrep '\.cs$$' >$@
14 .makefrag-exe: $(PROGRAM_LIST)
15 echo -n "program-deps: " >$@.new
16 cat $^ |egrep '\.cs$$' | sed -e 's,\.cs,.cs \\,' >>$@.new
17 cat $@.new |sed -e '$$s, \\$$,,' >$@
20 -include .makefrag-exe
22 $(PROGRAM): .response-exe .makefrag-exe #program-deps
23 $(MCS) $(MCS_FLAGS) -o $(PROGRAM) $(PROGRAM_FLAGS) @.response-exe
26 mkdir -p $(prefix)/bin/
27 $(INSTALL) -m 755 $(PROGRAM) $(prefix)/bin/