Skip to content

Commit

Permalink
make: fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jan 30, 2016
1 parent 0549b42 commit 3b3e944
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Makefile
Expand Up @@ -46,9 +46,8 @@ help:
$(info make genstats - regenerate statistics)
$(info make authors - regenerate AUTHORS.md)
$(info make dist - create tarballs)
$(info make bump-version)
$(info make melpa-post-release)
$(info - - fixup version strings)
$(info make VERSION=N.M bump-versions - bump versions for release)
$(info make bump-snapshots - bump versions after release)
@printf "\n"

lisp:
Expand Down Expand Up @@ -147,6 +146,7 @@ define set_package_requires
(let ((s (read (buffer-substring (point) (line-end-position)))))
(--when-let (assq 'async s) (setcdr it (list async-version)))
(--when-let (assq 'dash s) (setcdr it (list dash-version)))
(--when-let (assq 'with-editor s) (setcdr it (list with-editor-version)))
(--when-let (assq 'git-commit s) (setcdr it (list git-commit-version)))
(--when-let (assq 'magit-popup s) (setcdr it (list magit-popup-version)))
(delete-region (point) (line-end-position))
Expand All @@ -168,8 +168,8 @@ define set_manual_version
endef
export set_manual_version

bump-version: bump-version-1 texi
bump-version-1:
bump-versions: bump-versions-1 texi
bump-versions-1:
@$(BATCH) --eval "(progn\
(setq async-version \"$(ASYNC_VERSION)\")\
(setq dash-version \"$(DASH_VERSION)\")\
Expand All @@ -179,7 +179,7 @@ bump-version-1:
$$set_package_requires\
$$set_manual_version)"

melpa-post-release:
bump-snapshots:
@$(BATCH) --eval "(progn\
(setq async-version \"$(ASYNC_MELPA_SNAPSHOT)\")\
(setq dash-version \"$(DASH_MELPA_SNAPSHOT)\")\
Expand Down
15 changes: 13 additions & 2 deletions default.mk
Expand Up @@ -79,15 +79,26 @@ ifeq "$(DASH_DIR)" ""
DASH_DIR = $(TOP)../dash
endif

WITH_EDITOR_DIR ?= $(shell \
find -L $(ELPA_DIR) -maxdepth 1 -regex '.*/with-editor-[.0-9]*' 2> /dev/null | \
sort | tail -n 1)
ifeq "$(WITH_EDITOR_DIR)" ""
WITH_EDITOR_DIR = $(TOP)../with-editor
endif

SYSTYPE := $(shell $(EMACSBIN) -Q --batch --eval "(princ system-type)")
ifeq ($(SYSTYPE), windows-nt)
CYGPATH := $(shell cygpath --version 2>/dev/null)
endif

LOAD_PATH = -L $(TOP)/lisp

ifdef CYGPATH
LOAD_PATH ?= -L $(TOP)/lisp -L $(shell cygpath --mixed $(DASH_DIR))
LOAD_PATH += -L $(shell cygpath --mixed $(DASH_DIR))
LOAD_PATH += -L $(shell cygpath --mixed $(WITH_EDITOR_DIR))
else
LOAD_PATH ?= -L $(TOP)/lisp -L $(DASH_DIR)
LOAD_PATH += -L $(DASH_DIR)
LOAD_PATH += -L $(WITH_EDITOR_DIR)
endif

endif # ifndef LOAD_PATH
Expand Down

0 comments on commit 3b3e944

Please sign in to comment.