Skip to content

Commit

Permalink
Fix the Makefile so that we can compile projectile
Browse files Browse the repository at this point in the history
The functionality has been basically copied from cider and now we can call make
in order to produce projectile.elc.
  • Loading branch information
arichiardi committed Jan 5, 2019
1 parent 823c0aa commit 46ddaca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/elpa
/.elpa
/.cask
*.elc
*~
[#]*[#]
*\#*\#
*.\#*
*.elc
.cask
elpa*
/TAGS
/project
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
### Bugs fixed

* [#1315](https://github.com/bbatsov/projectile/issues/1315): Give preference to the project types that were registered last.
* [#1367](https://github.com/bbatsov/projectile/issues/1367): Fix the Makefile so that we can compile projectile - use `make`.

## 1.0.0 (2018-07-21)

Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ PKGDIR := $(shell EMACS=$(EMACS) $(CASK) package-directory)
SRCS = $(wildcard *.el)
OBJS = $(SRCS:.el=.elc)

.PHONY: compile test clean
.PHONY: compile test clean elpa

elpa:
all: compile

elpa-$(EMACS):
$(CASK) install
$(CASK) update
touch $@

elpa: elpa-$(EMACS)

elpaclean:
rm -f elpa*
rm -rf .cask # Clean packages installed for development

compile: $(OBJS)
compile: elpa
$(CASK) build

clean:
rm -f $(OBJS)
Expand Down

0 comments on commit 46ddaca

Please sign in to comment.