summaryrefslogtreecommitdiff
path: root/Makefile
blob: 011f33a6c4f051c33328b111c7e1f9c4d04e2884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
bash=/usr/bin/env bash
gitexecdir=$(libexecdir)/git-core

EDIT = { m4 -P | sed -e 's|@bash@|$(bash)|g' -e 's|@VERSION@|$(VERSION)|'; }

PACKAGE = emacsutils
VERSION = 0.9

topoutdir ?= .
topsrcdir ?= .

include $(topoutdir)/build-aux/Makefile.head.mk

programs = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm
desktops = emacsmail emacsterm

files.out.all += $(programs)
files.sys.all += $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop)
files.sys.all += $(gitexecdir)/mergetools/ediff
files.out.int += *.sh

%.sh: %.sh.in common.sh.in .var.bash .var.VERSION
	$(EDIT) < $< > $@

$(DESTDIR)$(bindir)/%: %
	$(NORMAL_INSTALL)
	$(INSTALL_PROGRAM) -D $< $@
$(DESTDIR)$(datarootdir)/applications/%: %
	$(NORMAL_INSTALL)
	$(INSTALL_DATA) -D $< $@
$(DESTDIR)$(gitexecdir)/mergetools/%: %.git-mergetool
	$(NORMAL_INSTALL)
	$(INSTALL_DATA) -D $< $@

.DELETE_ON_ERROR:
.SECONDARY:
include $(topoutdir)/build-aux/Makefile.tail.mk