blob: 134758aac010e5243b4a78b97e2cb3983a3d2128 (
plain) (
tree)
|
|
ROOT=$(shell pwd)/..
export ROOT
EMACSD=$(ROOT)/build/.emacs.d/
export ELISPDIR
SUBDIRS = auto-complete \
auto-indent-mode \
magit \
proofgeneral
# color-theme-6.6.0 \
MAKEDIRS = $(SUBDIRS:%=make-%)
INSTALLDIRS = $(SUBDIRS:%=install-%)
CLEANDIRS = $(SUBDIRS:%=clean-%)
all: subdirs
subdirs: $(MAKEDIRS)
$(MAKEDIRS):
$(MAKE) -C $(@:make-%=%)
touch $@
install: $(INSTALLDIRS)
install-% : make-%
$(INSTALLDIRS):
-mkdir -p $(EMACSD)/$(@:install-%=%)
$(MAKE) -C $(@:install-%=%) install DIR=$(EMACSD)/$(@:install-%=%)
clean: $(CLEANDIRS)
rm -f make-*
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
# Manual overrides:
make-auto-indent-mode:
touch $@
clean-auto-indent-mode:
echo $@
make-proofgeneral:
$(MAKE) -C $(@:make-%=%) compile
install-auto-complete:
-mkdir -p $(EMACSD)/$(@:install-%=%)
$(MAKE) -C $(@:install-%=%) -e DIR=$(EMACSD)/$(@:install-%=%) install
install-auto-indent-mode:
-mkdir -p $(EMACSD)/$(@:install-%=%)
cp $(@:install-%=%)/auto-indent-mode.el $(EMACSD)/$(@:install-%=%)
install-color-theme-6.6.0:
-mkdir -p $(EMACSD)/$(@:install-%=%)
$(MAKE) -C $(@:install-%=%) -e ELISPDIR=$(EMACSD)/$(@:install-%=%) install
install-magit:
-mkdir -p $(EMACSD)/$(@:install-%=%)
$(MAKE) -C $(@:install-%=%) -e PREFIX="" -e DESTDIR=$(EMACSD) \
-e SYSCONFDIR="" -e ELISP_INSTALL_DIR=$(EMACSD)/$(@:install-%=%) install
install-proofgeneral:
-mkdir -p $(EMACSD)/$(@:install-%=%)
$(MAKE) -C $(@:install-%=%) -e ELISP=$(EMACSD)/$(@:install-%=%) install-el install-elc
clean-magit:
$(MAKE) -C $(@:clean-%=%) clean
.PHONY: all install clean $(CLEANDIRS)
|