Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (61 sloc) 1.906 kb
PKGNAME = gh
VERSION = 0.5.0
SNAPDIR = $(PKGNAME)-$(VERSION)
PKGDEF = $(PKGNAME)-pkg.el
AUTODEF = $(PKGNAME)-auto.el
SPECIAL = $(PKGDEF) $(AUTODEF)
ALLSOURCE = $(wildcard *.el)
SOURCE = $(filter-out $(SPECIAL), $(ALLSOURCE))
TARGET = $(patsubst %.el,%.elc, $(SOURCE))
MISC = README
EMACS = emacs
SITEFLAG = --no-site-file
EFLAGS =
PREFIX = /usr/local
ELISPDIR = $(PREFIX)/share/emacs/site-lisp/$(PKGNAME)
TEXI2HTML = makeinfo --html --number-sections
# Location of Emacs Lisp Package Archive entries
ELPA=../../elpa
all: lisp docs
lisp: $(TARGET)
autoloads: $(AUTODEF)
$(AUTODEF): $(PKGNAME)-auto.in $(SOURCE)
cp $(PKGNAME)-auto.in $(AUTODEF)
rm -f $(AUTODEF)c
@$(EMACS) -q $(SITEFLAG) -batch -L . \
-l $(PKGNAME)-auto \
-f gh-generate-autoloads \
$(shell pwd | sed -e 's|^/cygdrive/\([a-z]\)|\1:|')/$(AUTODEF) .
%.elc: %.el
@$(EMACS) -q $(SITEFLAG) $(EFLAGS) -batch -L . \
-f batch-byte-compile $<
clean:
rm -f *~ $(TARGET) $(PKGNAME).info $(PKGNAME).html
realclean: clean docsclean
rm -f $(AUTODEF)
install-bin: lisp
install -d $(ELISPDIR)
install -m 0644 $(ALLSOURCE) $(TARGET) $(ELISPDIR)
install: install-bin
distclean: clean
rm -Rf ../$(SNAPDIR)
release: autoloads distclean
mkdir ../$(SNAPDIR) && chmod 0755 ../$(SNAPDIR)
cp $(SPECIAL) $(SOURCE) ../$(SNAPDIR)
(cd .. && tar cjf $(PKGNAME)-$(VERSION).tar.bz2 $(SNAPDIR)/*)
elpa: info
rm -fR $(ELPA)/$(SNAPDIR)
rm -f $(ELPA)/$(PKGNAME)-$(VERSION).tar
mkdir -p $(ELPA)/$(SNAPDIR) && chmod 0755 $(ELPA)/$(SNAPDIR)
cp $(SOURCE) $(MISC) $(ELPA)/$(SNAPDIR)
cp docs/build/texinfo/$(PKGNAME).info $(ELPA)/$(SNAPDIR)
sed -r -e "s/%VERSION%/$(VERSION)/g" < $(PKGDEF) \
> $(ELPA)/$(SNAPDIR)/$(PKGDEF)
(cd $(ELPA) && tar cf $(PKGNAME)-$(VERSION).tar $(SNAPDIR))
info:
$(MAKE) -C docs info
html:
$(MAKE) -C docs html
docs: info html
docsclean:
rm -f doc/$(PKGNAME).info doc/$(PKGNAME).html
Jump to Line
Something went wrong with that request. Please try again.