21 |
|
|
22 |
# the directory where you install third-party emacs packges |
# the directory where you install third-party emacs packges |
23 |
lispdir = $(datadir)/emacs/site-lisp |
lispdir = $(datadir)/emacs/site-lisp |
24 |
|
startupfile = $(lispdir)/site-start.el |
25 |
|
|
26 |
# the directory where you installed the elib .elc files. |
# the directory where you installed the elib .elc files. |
27 |
# This is only needed if your site-start.el (or default.el) does not |
# This is only needed if your site-start.el (or default.el) does not |
63 |
.SUFFIXES: .elc .el .info .ps .dvi .texi |
.SUFFIXES: .elc .el .info .ps .dvi .texi |
64 |
.PHONY: elcfiles info clean distclean default |
.PHONY: elcfiles info clean distclean default |
65 |
.PHONY: install_startup install_elc install install_el install_info |
.PHONY: install_startup install_elc install install_el install_info |
66 |
|
.PHONY: dvi postscript |
67 |
|
|
68 |
.el.elc: |
.el.elc: |
69 |
$(ELC) $< |
$(ELC) $< |
99 |
|
|
100 |
install_startup: |
install_startup: |
101 |
$(MKDIR) $(lispdir) |
$(MKDIR) $(lispdir) |
102 |
if grep $(PACKAGE) $(lispdir)/site-start.el >/dev/null 2>&1 || \ |
if grep $(PACKAGE) $(startupfile) >/dev/null 2>&1 || \ |
103 |
grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \ |
grep $(PACKAGE) $(lispdir)/default.el >/dev/null 2>&1; then \ |
104 |
echo "!!! Check $(PACKAGE)-startup.el and merge it" \ |
echo "!!! Check $(PACKAGE)-startup.el and merge it" \ |
105 |
echo "!!! into your $(lispdir)/site-start.el file"; \ |
echo "!!! into your $(startupfile) file"; \ |
106 |
else \ |
else \ |
107 |
sed 's|@elcdir@|$(elcdir)|' \ |
sed 's|@elcdir@|$(elcdir)|' \ |
108 |
$(PACKAGE)-startup.el >>$(lispdir)/site-start.el ;\ |
$(PACKAGE)-startup.el >>$(startupfile) ;\ |
109 |
fi |
fi |
110 |
|
|
111 |
install_dvi: $(PACKAGE).dvi |
postscript: $(PACKAGE).ps |
112 |
|
dvi: $(PACKAGE).dvi |
113 |
|
install_dvi: dvi |
114 |
$(MKDIR) $(docdir) |
$(MKDIR) $(docdir) |
115 |
$(CP) *.dvi $(docdir)/ |
$(CP) *.dvi $(docdir)/ |
116 |
|
|