Mercurial > urweb
diff Makefile.am @ 1441:8524a1709821
'--without-emacs' configure option
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 20 Mar 2011 13:47:39 -0400 |
parents | 6064ddd90ca6 |
children | b5517f47b1f1 |
line wrap: on
line diff
--- a/Makefile.am Sun Mar 20 13:15:11 2011 -0400 +++ b/Makefile.am Sun Mar 20 13:47:39 2011 -0400 @@ -59,7 +59,13 @@ src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml $(MLTON) -output $@ src/compiler.mlb -install-exec-local: +install-exec-emacs: +if USE_EMACS + mkdir -p $(DESTDIR)$(SITELISP) + cp src/elisp/*.el $(DESTDIR)$(SITELISP)/ +endif + +install-exec-local-main: mkdir -p $(DESTDIR)$(BIN) cp bin/urweb $(DESTDIR)$(BIN)/ mkdir -p $(DESTDIR)$(LIB_UR) @@ -70,11 +76,17 @@ mkdir -p $(DESTDIR)$(INCLUDE) cp config.h $(DESTDIR)$(INCLUDE)/ cp include/*.h $(DESTDIR)$(INCLUDE)/ - mkdir -p $(DESTDIR)$(SITELISP) - cp src/elisp/*.el $(DESTDIR)$(SITELISP)/ + +install-exec-local: install-exec-local-main install-exec-emacs -ldconfig -uninstall-local: +uninstall-emacs: +if USE_EMACS + rm -f $(DESTDIR)$(SITELISP)/urweb-compat.el $(DESTDIR)$(SITELISP)/urweb-mode.el $(DESTDIR)$(SITELISP)/urweb-move.el \ + $(DESTDIR)$(SITELISP)/urweb-defs.el $(DESTDIR)$(SITELISP)/urweb-mode-startup.el $(DESTDIR)$(SITELISP)/urweb-util.el +endif + +uninstall-local-main: rm -f $(DESTDIR)$(BIN)/urweb \ $(DESTDIR)$(LIB_UR)/basis.urs $(DESTDIR)$(LIB_UR)/char.urs $(DESTDIR)$(LIB_UR)/listPair.urs $(DESTDIR)$(LIB_UR)/list.urs \ $(DESTDIR)$(LIB_UR)/monad.urs $(DESTDIR)$(LIB_UR)/option.urs $(DESTDIR)$(LIB_UR)/string.urs $(DESTDIR)$(LIB_UR)/top.urs \ @@ -82,9 +94,9 @@ $(DESTDIR)$(LIB_UR)/monad.ur $(DESTDIR)$(LIB_UR)/option.ur $(DESTDIR)$(LIB_UR)/string.ur $(DESTDIR)$(LIB_UR)/top.ur \ $(DESTDIR)$(LIB_JS)/urweb.js \ $(DESTDIR)$(INCLUDE)/config.h $(DESTDIR)$(INCLUDE)/queue.h $(DESTDIR)$(INCLUDE)/request.h $(DESTDIR)$(INCLUDE)/types.h \ - $(DESTDIR)$(INCLUDE)/urweb.h \ - $(DESTDIR)$(SITELISP)/urweb-compat.el $(DESTDIR)$(SITELISP)/urweb-mode.el $(DESTDIR)$(SITELISP)/urweb-move.el \ - $(DESTDIR)$(SITELISP)/urweb-defs.el $(DESTDIR)$(SITELISP)/urweb-mode-startup.el $(DESTDIR)$(SITELISP)/urweb-util.el + $(DESTDIR)$(INCLUDE)/urweb.h + +uninstall-local: uninstall-local-main uninstall-emacs package: hg archive -t tgz -X tests /tmp/urweb.tgz