elisp-vcs/Makefile

117 lines
3.5 KiB
Makefile

ifndef HAS_UTIL_MK
include $(HOME)/Documents/mk/util.mk
endif
.PHONY: all elisp-all update
all: elisp-all
elisp-all:
#elisp-all: ess
#apel flim semi wanderlust
update: initrepos updaterepos
$(call include-once,$(MK_DIR)/vcs.mk)
$(call include-once,$(MK_DIR)/emacsd-defs.mk)
GIT_DIRS += emacswiki
URL-emacswiki := https://github.com/emacsmirror/emacswiki.org.git
https://github.com/emacsmirror/emacswiki.org/tree/master
GITCLONE_FLAGS-emacswiki := --no-checkout --config core.sparseCheckout=true --depth 10 -b master
post_clone_cmd-emacswiki :=\
cd emacswiki &&\
echo '!*' > .git/info/sparse-checkout &&\
echo '[a-z]*.el' >> .git/info/sparse-checkout
#GIT_DIRS += apel
#URL-apel := http://github.com/wanderlust/apel.git
#GIT_DIRS += semi
#URL-semi := http://github.com/wanderlust/semi.git
#GIT_DIRS += flim
#URL-flim := http://github.com/wanderlust/flim.git
#GIT_DIRS += wanderlust
#URL-wanderlust := http://github.com/wanderlust/wanderlust.git
$(foreach d,$(HG_DIRS) ,$(call eval-vcs-template,HG_TMPL,$d))
$(foreach d,$(GIT_DIRS),$(call eval-vcs-template,GIT_TMPL,$d))
#$(foreach d,$(GIT_DIRS),$(call info-vcs-template,GIT_TMPL,$d))
$(foreach d,$(BZR_DIRS),$(call eval-vcs-template,BZR_TMPL,$d))
$(foreach d,$(SVN_DIRS),$(call eval-vcs-template,SVN_TMPL,$d))
$(foreach d,$(CVS_DIRS),$(call eval-vcs-template,CVS_TMPL,$d))
# #########################################################################
# apel
# #########################################################################
.PHONY: apel
apel:
mv $(DIR-$@)/APEL-CFG $(DIR-$@)/APEL-CFG.org
gsed\
-e '/setq APEL_DIR \"~/s@^[; ]*@@'\
-e '/setq EMU_DIR \"~/s@^[; ]*@@'\
-e 's@^\([^;].*~\)/lib/emacs@\1/.emacs.d@'\
-e 's@^\([^;].*\)/lisp/emu@\1/lisp/apel@'\
$(DIR-$@)/APEL-CFG.org > $(DIR-$@)/APEL-CFG
$(MAKE) -C $(DIR-$@) install\
EMACS=$(EMACS)\
LISPDIR=$(LISP_DIR)
echo diff -u $(DIR-$@)/APEL-CFG.org $(DIR-$@)/APEL-CFG||exit 0&&exit 0
mv $(DIR-$@)/APEL-CFG.org $(DIR-$@)/APEL-CFG
# #########################################################################
# flim
# #########################################################################
.PHONY: flim
flim:
$(MAKE) -C $(DIR-$@) install\
EMACS=$(EMACS)\
PACKAGEDIR=$(DOT_DIR)\
PREFIX=$(LISP_DIR)\
LISPDIR=$(LISP_DIR)
# #########################################################################
# semi
# #########################################################################
.PHONY: semi
semi:
$(MAKE) -C $(DIR-$@) install\
EMACS=$(EMACS)\
PACKAGEDIR=$(DOT_DIR)\
PREFIX=$(LISP_DIR)\
LISPDIR=$(LISP_DIR)
# #########################################################################
# wanderlust
# #########################################################################
.PHONY: wanderlust
wanderlust:
mv $(DIR-$@)/WL-CFG $(DIR-$@)/WL-CFG.org
gsed -e '/setq load-path/,/^ *$$/s@^;*@@'\
-e 's@/usr/local/share/mule/site-@~/.emacs.d/@'\
-e '/wl-\(install\|info\|news\)/s@^;\+@@'\
-e 's@\"ja\" \"en\"@\"en\"@'\
$(DIR-$@)/WL-CFG.org > $(DIR-$@)/WL-CFG
$(MAKE) -C $(DIR-$@) install install-info\
EMACS=$(EMACS)\
LISPDIR=$(LISP_DIR)\
INFODIR=$(INFO_DIR)\
PIXMAPDIR=$(LISP_DIR)/wl/icons
echo diff -u $(DIR-$@)/WL-CFG.org $(DIR-$@)/WL-CFG||exit 0&&exit 0
mv $(DIR-$@)/WL-CFG.org $(DIR-$@)/WL-CFG
# #########################################################################
# include .el pattern rules
# #########################################################################
$(call include-once,$(MK_DIR)/emacsd-rules.mk)
# Local Variables:
# tab-width: 2
# End: