(XEMACS): New variable.
authormorioka <morioka>
Fri, 11 Sep 1998 09:29:35 +0000 (09:29 +0000)
committermorioka <morioka>
Fri, 11 Sep 1998 09:29:35 +0000 (09:29 +0000)
(PACKAGEDIR): New variable.
(package): New target.
(install-package): New target.

Makefile

index f77aab8..44dde99 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,12 @@ RM  = /bin/rm -f
 CP     = /bin/cp -p
 
 EMACS  = emacs
+XEMACS = xemacs
 FLAGS   = -batch -q -no-site-file -l FLIM-MK
 
 PREFIX = NONE
 LISPDIR = NONE
+PACKAGEDIR = NONE
 
 GOMI   = *.elc \
          *.cp *.cps *.ky *.kys *.fn *.fns *.vr *.vrs \
@@ -27,6 +29,18 @@ elc:
 install:       elc
        $(EMACS) $(FLAGS) -f install-flim $(PREFIX) $(LISPDIR)
 
+
+package:
+       $(XEMACS) -batch -q -no-site-file \
+               -eval '(setq autoload-package-name "flim")' \
+               -l autoload -f batch-update-directory .
+       $(XEMACS) -batch -q -no-site-file \
+               -l cus-dep -f Custom-make-dependencies .
+       $(XEMACS) $(FLAGS) -f compile-flim-package $(PACKAGEDIR)
+
+install-package:       package
+       $(XEMACS) $(FLAGS) -f install-flim-package $(PACKAGEDIR)
+
 clean:
        -$(RM) $(GOMI)