/usr/share/doc/gretl-doc/examples/utils/emacs/Makefile.in is in gretl-doc 2016d-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | topsrc = @top_srcdir@
elsrc = $(topsrc)/utils/emacs
MKLANG = ../../gui2/mklang
EMACS = $(shell which emacs)
EPREFIX = $(shell dirname $(EMACS))
SITELISP = $(shell echo $(EPREFIX) | sed s+bin+share+)/emacs/site-lisp
gretl.elc : gretl.el
emacs -batch -f batch-byte-compile $<
gretl.el : gretl.el.middle
cat $(elsrc)/gretl.el.top > gretl.el
cat gretl.el.middle >> gretl.el
cat $(elsrc)/gretl.el.bottom >> gretl.el
gretl.el.middle :
$(MKLANG) --emacs > $@
install: gretl.elc
echo "Installing to $(SITELISP)"
install -m 644 gretl.elc $(SITELISP)
clean:
rm -f gretl.el gretl.elc gretl.el.middle
distclean: clean
rm -f Makefile
|