summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a1e308..6d8f67e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,27 @@
+# ~\~ language=Make filename=Makefile
+# ~\~ begin <<rccat.md|Makefile>>[0]
PREFIX ?= /usr/local
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL)
+# ~\~ begin <<rccat.md|make-all>>[0]
all: build
+# ~\~ end
+# ~\~ begin <<rccat.md|make-build>>[0]
build:
$(CC) -o rccat rccat.c
+# ~\~ end
+# ~\~ begin <<rccat.md|make-clean>>[0]
clean:
$(RM) rccat
+# ~\~ end
+# ~\~ begin <<rccat.md|make-install>>[0]
install:
$(INSTALL_PROGRAM) -d $(PREFIX)/bin
$(INSTALL_PROGRAM) -m755 rccat $(PREFIX)/bin
+# ~\~ end
+# ~\~ begin <<rccat.md|make-uninstall>>[0]
uninstall:
$(RM) $(PREFIX)/bin/rccat
+# ~\~ end
+# ~\~ end