Added the install target to makefile.
This commit is contained in:
7
Makefile
7
Makefile
@@ -70,6 +70,12 @@ clean:
|
|||||||
rm -f /tmp/test.cm /tmp/test.asm /tmp/test.o /tmp/test /tmp/test.out /tmp/test.err
|
rm -f /tmp/test.cm /tmp/test.asm /tmp/test.o /tmp/test /tmp/test.out /tmp/test.err
|
||||||
@echo "Cleaned all generated files"
|
@echo "Cleaned all generated files"
|
||||||
|
|
||||||
|
# Install to /usr/local/
|
||||||
|
.PHONY: install
|
||||||
|
install:
|
||||||
|
install common /usr/local/bin/
|
||||||
|
@echo Installed common to /usr/local/bin/
|
||||||
|
|
||||||
# Help
|
# Help
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
@@ -81,6 +87,7 @@ help:
|
|||||||
@echo " examples - Build all example programs"
|
@echo " examples - Build all example programs"
|
||||||
@echo " run-examples - Build and run all examples"
|
@echo " run-examples - Build and run all examples"
|
||||||
@echo " clean - Remove all generated files"
|
@echo " clean - Remove all generated files"
|
||||||
|
@echo " install - Install to /usr/local/bin"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Build individual examples:"
|
@echo "Build individual examples:"
|
||||||
@echo " make hello"
|
@echo " make hello"
|
||||||
|
|||||||
Reference in New Issue
Block a user