diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-27 20:06:16 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-27 20:06:16 -0500 |
commit | a971938946dd61a3468263908988363dbdd87a3d (patch) | |
tree | c3cc9ef949523199b81f8f7799c3c1863b59554c /Makefile |
initial commit of my emacs scripts, after some cleanup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bbb19d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +DESTDIR= +prefix=/usr/local +exec_prefix=$(prefix) +bindir=$(exec_prefix)/bin + +bash=/bin/bash + +EDIT = { m4 -P | sed 's|@bash@|$(bash)|g'; } +INSTALL_PROGRAM = install -Dm755 +RM = rm -f + + + +targets = ediff emacsmail emacsterm + +all: PHONY $(targets) +install: PHONY $(addprefix $(DESTDIR)$(bindir)/,$(targets)) +uninstall: PHONY + $(RM) -- $(addprefix $(DESTDIR)$(bindir)/,$(targets)) +clean: PHONY + $(RM) -- $(addsuffix .sh,$(targets)) +distclean: PHONY clean + $(RM) -- $(targets) + + + +%.sh: %.sh.in common.sh + $(EDIT) < $< > $@ + +$(DESTDIR)$(bindir)/%: % + $(INSTALL_PROGRAM) $< $@ + + + +.PHONY: PHONY +.DELETE_ON_ERROR: |