Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Chunye committed Mar 25, 2020
1 parent e40f6b5 commit 790e8bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ TARBALL := out/100ms_dot_emacs.emacs.d.$(VERSION).tar.gz
all: $(SRC_TARBALL) $(SRC_ZIPBALL) $(TARBALL)

$(TARBALL): $(HOME)/.emacs.d/init.elc
(cd -P $(HOME)/.emacs.d; cd ..;tar -zcf - --exclude=.emacs.d/straight/repos .emacs.d/init.elc .emacs.d/straight) >$@
(cd -P $(HOME)/.emacs.d; cd ..;tar -zcf - \
--exclude=.emacs.d/straight/repos \
.emacs.d/.autoloads.el \
.emacs.d/.autoloads.elc \
.emacs.d/init.elc .emacs.d/straight) >$@

$(HOME)/.emacs.d/init.elc: init.elc
cp -v $< $@
Expand All @@ -19,4 +23,4 @@ init.elc: no-load-path.el
$(EMACS) -Q --batch -L . --eval="(require 'no-load-path)" -f batch-byte-compile $<

clean:
rm out/*.tar.gz out/*.zip $(HOME)/.emacs.d/init.elc
-rm out/*.tar.gz $(HOME)/.emacs.d/init.elc

0 comments on commit 790e8bb

Please sign in to comment.