(TAR): New variable.
(RM): New variable.
(CP): New variable.
(tar): New target.
VERSION = 1.2
+PACKAGE = emacs-canna
+TAR = tar
+RM = /bin/rm -f
+CP = /bin/cp -p
+
+
all: canna.so canna.elc
canna.elc: canna.el
clean:
-rm -f canna.o canna.so canna.elc
+
+
+tar:
+ 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 . _` \
+ emacs-canna'
+ $(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in
+ cd /tmp; $(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