blob: 566b73cd17bf71eed461e29e02e7c49b5077104b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
MCS = mcs
MCS_FLAGS = --target exe
INSTALL = /usr/bin/install
prefix = /usr
all: $(PROGRAM)
clean:
-rm -rf $(PROGRAM) .response-exe .makefrag-exe
.response-exe: $(PROGRAM_LIST)
cat $^ |egrep '\.cs$$' >$@
.makefrag-exe: $(PROGRAM_LIST)
echo -n "program-deps: " >$@.new
cat $^ |egrep '\.cs$$' | sed -e 's,\.cs,.cs \\,' >>$@.new
cat $@.new |sed -e '$$s, \\$$,,' >$@
rm -rf $@.new
-include .makefrag-exe
$(PROGRAM): .response-exe .makefrag-exe #program-deps
$(MCS) $(MCS_FLAGS) -o $(PROGRAM) $(PROGRAM_FLAGS) @.response-exe
install: all
mkdir -p $(prefix)/bin/
$(INSTALL) -m 755 $(PROGRAM) $(prefix)/bin/
|