Importing Oort Gnus v0.04.
[elisp/gnus.git-] / lisp / Makefile.in
index cb91295..374a730 100644 (file)
@@ -15,36 +15,51 @@ W3DIR = @W3@
 URLDIR = @URL@
 EMACS_COMP = URLDIR=$(URLDIR) W3DIR=$(W3DIR) lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS) $(FLAGS)
 
-all total: clean-some gnus-load.elc
+all total: clean-some gnus-load.el
        $(EMACS_COMP) -f dgnushack-compile
 
 clean-some:
        rm -f *.elc gnus-load.el
 
-warn: clean-some gnus-load.elc
+warn: clean-some gnus-load.el
        $(EMACS_COMP) --eval '(dgnushack-compile t)' 2>&1 | egrep -v "variable G|inhibit-point-motion-hooks|coding-system|temp-results|variable gnus|variable nn|scroll-in-place|deactivate-mark|filladapt-mode|byte-code-function-p|print-quoted|ps-right-header|ps-left-header|article-inhibit|print-escape|ssl-program-arguments|message-log-max"
 
 # The "clever" rule is unsafe, since redefined macros are loaded from
 # .elc files, and not the .el file.
-clever some: gnus-load.elc
+clever some: gnus-load.el
        $(EMACS_COMP) -f dgnushack-compile
 
-install: clever
-       rm -f dgnushack.elc
+install: install-el install-elc 
+
+install-el: gnus-load.el
        $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
+       echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el"
+       $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el
        for p in *.elc; do \
-         echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
-         $(INSTALL_DATA) $$p $(lispdir)/$$p; \
+         p=`basename $$p c`; \
+         if [ -f "$(srcdir)/$$p" ]; then \
+           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
+           $(INSTALL_DATA) $(srcdir)/$$p $(lispdir)/$$p; \
+         fi; \
        done
 
-install-el:
+install-elc: clever
+       rm -f dgnushack.elc
        $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
-       cd $(srcdir) \
-       && for p in *.el; do \
+       for p in *.elc; do \
          echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
          $(INSTALL_DATA) $$p $(lispdir)/$$p; \
        done
 
+uninstall:
+       for p in *.elc; do \
+         rm -f "$(lispdir)/$$p"; \
+       done
+       cd $(srcdir); \
+       for p in *.el; do \
+         rm -f "$(lispdir)/$$p"; \
+       done
+
 tags:
        etags *.el
 
@@ -54,7 +69,7 @@ separately:
 pot:
        xpot -drgnus -r`cat ./version` *.el > rgnus.pot
 
-gnus-load.elc:
+gnus-load.el:
        $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
        $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
        $(EMACS_COMP) -f dgnushack-make-load