summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
commit896161c483ceef3ed16e2f19a5c05106bed04512 (patch)
tree8e79f92d7b3dfe09fa97f4ae5feb8331ad6fbb52 /Makefile
I can't believe I didn't have this in git before.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..37508a6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+prefix ?= /usr/local
+bindir ?= $(prefix)/bin
+
+INSTALL = install
+RM = rm -f
+
+BINFILES = \
+ arg \
+ ord \
+ urldecode \
+ v-www-browser \
+ v-editor \
+ whatismyip \
+ chardiff \
+ chardiff_pre \
+ chardiff_post \
+ newegg \
+ hangman \
+ sysfiles \
+ daemon \
+ emacsmail
+
+all: build
+
+build: $(BINFILES)
+
+install: $(addprefix $(DESTDIR)$(bindir)/,$(BINFILES))
+
+$(DESTDIR)$(bindir)/%: % | $(DESTDIR)$(bindir)
+ $(INSTALL) '$<' '$(@D)'
+
+$(DESTDIR)$(bindir):
+ mkdir -p '$@'
+
+clean:
+ $(RM) $(BINFILES)
+ $(RM) *~
+