-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)
-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/
+