From: yamaoka Date: Mon, 19 Jul 1999 04:05:27 +0000 (+0000) Subject: (release): New target. X-Git-Tag: mu-cite-8_0~44 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bc7d2cf745ae3c287c7e701039da1b411403c0c2;p=elisp%2Fmu-cite.git (release): New target. (tar): New implementation. (clean): Use the variables `RM' and `GOMI'. (install-package): New target. (package): New target. (install): Accept the arguments `PREFIX', `LISPDIR' and `VERSION_SPECIFIC_LISPDIR'. (elc): Likewise. (ARC_DIR, VERSION, FILES, GOMI): New variables. (VERSION_SPECIFIC_LISPDIR, PACKAGEDIR, LISPDIR): New variables. (PREFIX): Default to "NONE". (XEMACS, CP, RM, TAR, RELEASE, API, PACKAGE): New variables. ;; Contributed by Kenji Itoh . --- diff --git a/Makefile b/Makefile index 8b09b76..91019c1 100644 --- a/Makefile +++ b/Makefile @@ -2,32 +2,64 @@ # Makefile for mu-cite. # -EMACS = emacs -FLAGS = -batch -q -no-site-file -l MU-MK +PACKAGE = mu +API = 8 +RELEASE = 0 -PREFIX = +TAR = tar +RM = /bin/rm -f +CP = /bin/cp -p -FILES = mu/Makefile mu/MU-CFG mu/MU-MK mu/MU-ELS \ - mu/*.el mu/README.?? \ - emu/Makefile emu/EMU-MK emu/EMU-CFG emu/EMU-ELS \ - emu/*.el emu/README.?? \ - apel/Makefile apel/APEL-MK apel/APEL-CFG apel/APEL-ELS \ - apel/*.el +EMACS = emacs +XEMACS = xemacs +FLAGS = -batch -q -no-site-file -l MU-MK +PREFIX = NONE +LISPDIR = NONE +PACKAGEDIR = NONE +VERSION_SPECIFIC_LISPDIR = NONE -TARFILE = mu-0.1.tar +GOMI = *.elc auto-autoloads.el custom-load.el \ + *.cp *.cps *.ky *.kys *.fn *.fns *.vr *.vrs \ + *.pg *.pgs *.tp *.tps *.toc *.aux *.log +FILES = README.?? Makefile MU-MK MU-CFG MU-ELS *.el ChangeLog +VERSION = $(API).$(RELEASE) +ARC_DIR = /pub/mule/mu/mu-$(API) elc: - $(EMACS) $(FLAGS) -f compile-mu + $(EMACS) $(FLAGS) -f compile-mu $(PREFIX) $(LISPDIR) \ + $(VERSION_SPECIFIC_LISPDIR) install: elc - $(EMACS) $(FLAGS) -f install-mu $(PREFIX) + $(EMACS) $(FLAGS) -f install-mu $(PREFIX) $(LISPDIR) \ + $(VERSION_SPECIFIC_LISPDIR) +package: + $(XEMACS) $(FLAGS) -f compile-mu-package $(PACKAGEDIR) + +install-package: package + $(XEMACS) $(FLAGS) -f install-mu-package $(PACKAGEDIR) + clean: - -rm *.elc + -$(RM) $(GOMI) tar: - cd ..; tar cvf $(TARFILE) $(FILES); gzip -best $(TARFILE) + cvs commit + sh -c 'cvs tag -RF $(PACKAGE)-`echo $(VERSION) | tr . _`; \ + cd /tmp; \ + cvs -d :pserver:anonymous@chamonix.jaist.ac.jp:/hare/cvs/root \ + export -d $(PACKAGE)-$(VERSION) \ + -r $(PACKAGE)-`echo $(VERSION) | tr . _` \ + mu' + cd /tmp; $(RM) $(PACKAGE)-$(VERSION)/ftp.in ; \ + $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) + cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION) + sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \ + | sed "s/PACKAGE/$(PACKAGE)/" > ftp + +release: + -$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz + mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR)