bash=/usr/bin/env bash 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) $(addsuffix .desktop,$(desktops)) files.sys.all = $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop) 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 $< $@ .DELETE_ON_ERROR: .SECONDARY: include $(topoutdir)/build-aux/Makefile.tail.mk