2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / executable.make
index a6160075cad08e1bd87d9f7f7aea033744651c48..566b73cd17bf71eed461e29e02e7c49b5077104b 100644 (file)
@@ -1,9 +1,11 @@
-MCSTOOL = ../mcs-tool
+MCS = mcs
 MCS_FLAGS = --target exe
+INSTALL = /usr/bin/install
+prefix = /usr
 
 all: $(PROGRAM)
 
-clean-exe:
+clean:
        -rm -rf $(PROGRAM) .response-exe .makefrag-exe
 
 .response-exe: $(PROGRAM_LIST)
@@ -18,4 +20,9 @@ clean-exe:
 -include .makefrag-exe
 
 $(PROGRAM): .response-exe .makefrag-exe #program-deps
-       $(MCSTOOL) $(MCS_FLAGS) -o $(PROGRAM) $(PROGRAM_FLAGS) @.response-exe
+       $(MCS) $(MCS_FLAGS) -o $(PROGRAM) $(PROGRAM_FLAGS) @.response-exe
+
+install: all
+       mkdir -p $(prefix)/bin/
+       $(INSTALL) -m 755 $(PROGRAM) $(prefix)/bin/
+