Created
June 24, 2019 00:42
-
-
Save darkfeline/24e2ec43c0cc0b9f3ae69ccda1d63be1 to your computer and use it in GitHub Desktop.
Makefile for building emacs-w3m as a package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname = w3m | |
pkgver = 0.1.0 | |
$(pkgname)-$(pkgver).tar: w3m-pkg.el $(wildcard *.el) $(wildcard shimbun/*.el) dir $(wildcard doc/*.info) | |
tar --transform "s/^/$(pkgname)-$(pkgver)\//" -cf $@ $(wildcard *.el) $(wildcard shimbun/*.el) dir | |
tar --transform "s/^doc/$(pkgname)-$(pkgver)/" -rf $@ $(wildcard doc/*.info) | |
dir: $(wildcard doc/*.info) | |
rm -f $@ | |
for f in $^; do install-info $$f $@; done | |
.SUFFIXES: | |
w3m-pkg.el: | |
printf "(define-package \"$(pkgname)\" \"$(pkgver)\")" >$@ | |
# Local Variables: | |
# mode: makefile | |
# End: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment