Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 88 lines (64 sloc) 2.056 kb
e00a587 Yann Hodique package properly
authored
1 PKGNAME = gh
ef03b63 Yann Hodique bump version to 0.5.3
authored
2 VERSION = 0.5.3
e00a587 Yann Hodique package properly
authored
3 SNAPDIR = $(PKGNAME)-$(VERSION)
4
5 PKGDEF = $(PKGNAME)-pkg.el
6 AUTODEF = $(PKGNAME)-auto.el
841a604 Yann Hodique fix makefile
authored
7 SPECIAL = $(PKGDEF) $(AUTODEF)
e00a587 Yann Hodique package properly
authored
8 ALLSOURCE = $(wildcard *.el)
9
137807c Yann Hodique add documentation stub
authored
10 SOURCE = $(filter-out $(SPECIAL), $(ALLSOURCE))
841a604 Yann Hodique fix makefile
authored
11 TARGET = $(patsubst %.el,%.elc, $(SOURCE))
e00a587 Yann Hodique package properly
authored
12 MISC = README
13
14 EMACS = emacs
15 SITEFLAG = --no-site-file
841a604 Yann Hodique fix makefile
authored
16 EFLAGS =
749ecb4 Yann Hodique make test
authored
17 BATCH = $(EMACS) $(EFLAGS) $(SITEFLAG) -batch -q -L .
e00a587 Yann Hodique package properly
authored
18
19 PREFIX = /usr/local
20 ELISPDIR = $(PREFIX)/share/emacs/site-lisp/$(PKGNAME)
21
137807c Yann Hodique add documentation stub
authored
22 TEXI2HTML = makeinfo --html --number-sections
23
e00a587 Yann Hodique package properly
authored
24 # Location of Emacs Lisp Package Archive entries
25 ELPA=../../elpa
26
137807c Yann Hodique add documentation stub
authored
27 all: lisp docs
e00a587 Yann Hodique package properly
authored
28
137807c Yann Hodique add documentation stub
authored
29 lisp: $(TARGET)
e00a587 Yann Hodique package properly
authored
30
31 autoloads: $(AUTODEF)
32
33 $(AUTODEF): $(PKGNAME)-auto.in $(SOURCE)
34 cp $(PKGNAME)-auto.in $(AUTODEF)
35 rm -f $(AUTODEF)c
749ecb4 Yann Hodique make test
authored
36 @$(BATCH) -l $(PKGNAME)-auto \
e00a587 Yann Hodique package properly
authored
37 -f gh-generate-autoloads \
38 $(shell pwd | sed -e 's|^/cygdrive/\([a-z]\)|\1:|')/$(AUTODEF) .
39
40 %.elc: %.el
749ecb4 Yann Hodique make test
authored
41 @$(BATCH) -f batch-byte-compile $<
e00a587 Yann Hodique package properly
authored
42
43 clean:
137807c Yann Hodique add documentation stub
authored
44 rm -f *~ $(TARGET) $(PKGNAME).info $(PKGNAME).html
e00a587 Yann Hodique package properly
authored
45
137807c Yann Hodique add documentation stub
authored
46 realclean: clean docsclean
841a604 Yann Hodique fix makefile
authored
47 rm -f $(AUTODEF)
e00a587 Yann Hodique package properly
authored
48
49 install-bin: lisp
50 install -d $(ELISPDIR)
51 install -m 0644 $(ALLSOURCE) $(TARGET) $(ELISPDIR)
52
53 install: install-bin
54
55 distclean: clean
137807c Yann Hodique add documentation stub
authored
56 rm -Rf ../$(SNAPDIR)
e00a587 Yann Hodique package properly
authored
57
58 release: autoloads distclean
59 mkdir ../$(SNAPDIR) && chmod 0755 ../$(SNAPDIR)
60 cp $(SPECIAL) $(SOURCE) ../$(SNAPDIR)
61 (cd .. && tar cjf $(PKGNAME)-$(VERSION).tar.bz2 $(SNAPDIR)/*)
62
841a604 Yann Hodique fix makefile
authored
63 elpa: info
e00a587 Yann Hodique package properly
authored
64 rm -fR $(ELPA)/$(SNAPDIR)
65 rm -f $(ELPA)/$(PKGNAME)-$(VERSION).tar
66 mkdir -p $(ELPA)/$(SNAPDIR) && chmod 0755 $(ELPA)/$(SNAPDIR)
8cd54f1 Yann Hodique package README
authored
67 cp $(SOURCE) $(MISC) $(ELPA)/$(SNAPDIR)
841a604 Yann Hodique fix makefile
authored
68 cp docs/build/texinfo/$(PKGNAME).info $(ELPA)/$(SNAPDIR)
e00a587 Yann Hodique package properly
authored
69 sed -r -e "s/%VERSION%/$(VERSION)/g" < $(PKGDEF) \
70 > $(ELPA)/$(SNAPDIR)/$(PKGDEF)
71 (cd $(ELPA) && tar cf $(PKGNAME)-$(VERSION).tar $(SNAPDIR))
137807c Yann Hodique add documentation stub
authored
72
841a604 Yann Hodique fix makefile
authored
73 info:
74 $(MAKE) -C docs info
137807c Yann Hodique add documentation stub
authored
75
841a604 Yann Hodique fix makefile
authored
76 html:
77 $(MAKE) -C docs html
137807c Yann Hodique add documentation stub
authored
78
79 docs: info html
80
81 docsclean:
82 rm -f doc/$(PKGNAME).info doc/$(PKGNAME).html
749ecb4 Yann Hodique make test
authored
83
84 test: lisp
b8ff815 Yann Hodique a very basic test for the new gh-issues lib
authored
85 @$(BATCH) -l tests/gh-tests.el -l tests/gh-gist-tests.el \
790dc4a Yann Hodique fix Makefile to run orgs tests
authored
86 -l tests/gh-issues-tests.el -l tests/gh-orgs-tests.el \
749ecb4 Yann Hodique make test
authored
87 -f ert-run-tests-batch-and-exit
Something went wrong with that request. Please try again.