aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2015-05-24 20:26:13 +0100
committerTomasz Kramkowski <tk@the-tk.com>2015-05-24 20:26:13 +0100
commit792ef281df229d5748ef7049f4ffcf678588cfe7 (patch)
tree5bae3e421019d97160d8f607164bc2dfd14e5967
parentd732b8cea5f301e6879bc2321a777490c8df9d27 (diff)
downloadc-stuff-792ef281df229d5748ef7049f4ffcf678588cfe7.tar.gz
c-stuff-792ef281df229d5748ef7049f4ffcf678588cfe7.tar.xz
c-stuff-792ef281df229d5748ef7049f4ffcf678588cfe7.zip
Makefile now has a help target as well as the all target
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1d6edc4..4f29283 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,14 @@ bindir = $(prefix)/bin
all:
@echo 'Error, target not specified.'
+ @make --no-print-directory help
+
+help:
+ @echo 'Usage:'
@echo ' To compile <filename>.c `make <filename>`'
@echo ' To install <filename> `make target=<filename> install`'
@echo ' To uninstall <filename> `make target=<filename> uninstall`'
+ @echo ' To clean up `make clean`'
$(DESTDIR)$(bindir)/%: %