From 84704dd28c3fbf50053afe26cfdf81539668c10a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 26 Jun 2016 00:33:16 -0400 Subject: Add .desktop files for emacsmail and emacsterm --- Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8fc2ada..b3c7379 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,6 @@ -DESTDIR= -prefix=/usr/local -exec_prefix=$(prefix) -bindir=$(exec_prefix)/bin - bash=/usr/bin/env bash EDIT = { m4 -P | sed -e 's|@bash@|$(bash)|g' -e 's|@VERSION@|$(VERSION)|'; } -INSTALL_PROGRAM = install -Dm755 -RM = rm -f PACKAGE = emacsutils VERSION = 0.9 @@ -26,15 +19,21 @@ else -include .srcfiles.mk endif -std.out_files = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm -std.sys_files = $(addprefix $(bindir)/,$(std.out_files)) +programs = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm +desktops = emacsmail emacsterm +std.out_files = $(programs) $(addsuffix .desktop,$(desktops)) +std.sys_files = $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop) std.clean_files += *.sh %.sh: %.sh.in common.sh.in .var.bash .var.VERSION $(EDIT) < $< > $@ $(DESTDIR)$(bindir)/%: % + $(NORMAL_INSTALL) $(INSTALL_PROGRAM) $< $@ +$(DESTDIR)$(datarootdir)/applications/%: % + $(NORMAL_INSTALL) + $(INSTALL_DATA) $< $@ .var.%: FORCE @printf '%s' '$($*)' | sed 's|^|#|' | $(WRITE_IFCHANGED) '$@' -- cgit v1.2.3