File: Makefile

package info (click to toggle)
emacs-wiki 2.72-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,016 kB
  • ctags: 702
  • sloc: lisp: 11,288; makefile: 122; sh: 37
file content (88 lines) | stat: -rw-r--r-- 2,608 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.PHONY: all lisp doc clean realclean distclean fullclean install test dist release debclean debrelease
.PRECIOUS: %.elc

include Makefile.defs

EL  = $(wildcard *.el)
ELC = $(patsubst %.el,%.elc,$(wildcard *.el))

all: lisp emacs-wiki.info

lisp: $(ELC)

emacs-wiki-build.elc: ./scripts/emacs-wiki-build.el
	@echo emacs-wiki-build.el is not byte-compiled

%.elc: %.el
	@$(EMACS) -q $(SITEFLAG) -batch -l ./scripts/emacs-wiki-build.el \
		-f batch-byte-compile $<

%.info: %.texi
	makeinfo $<

%.html: %.texi
	makeinfo --html --no-split $<

doc: emacs-wiki.info emacs-wiki.html

clean:
	-rm -f *.elc *~

realclean fullclean: clean
	-rm -f emacs-wiki.info emacs-wiki.html

install: $(ELC) emacs-wiki.info
	install -d $(ELISPDIR)/contrib
	install -m 0644 $(EL) $(ELC) $(ELISPDIR)
	install -m 0644 $(wildcard contrib/*.el) $(ELISPDIR)/contrib
	install -d $(INFODIR)
	install -m 0644 emacs-wiki.info $(INFODIR)/emacs-wiki
	$(INSTALLINFO) $(INFODIR)/emacs-wiki

test: $(ELC)
	$(EMACS) -q $(SITEFLAG) -batch -l ./scripts/emacs-wiki-build.el \
		-f emacs-wiki-elint-files emacs-wiki-*.el

distclean: realclean
	-rm -f debian/dirs debian/files
	test -d ../emacs-wiki-$(VERSION) && rm -r ../emacs-wiki-$(VERSION) || :

dist: distclean
	tla inventory -sB | tar -cf - --no-recursion -T- | \
	  (mkdir -p ../emacs-wiki-$(VERSION); cd ../emacs-wiki-$(VERSION) && \
	  tar xf -)
	rm -fr ../emacs-wiki-$(VERSION)/debian ../emacs-wiki-$(VERSION)/test

release: dist
	(cd .. && tar -czf emacs-wiki-$(VERSION).tar.gz \
	          emacs-wiki-$(VERSION) ; \
	  zip -r emacs-wiki-$(VERSION).zip emacs-wiki-$(VERSION))

debclean:
	-rm -f ../../dist/emacs-wiki_*
	-rm -f ../emacs-wiki_$(VERSION)*

debrelease: dist debclean
	(cd .. && tar -czf emacs-wiki_$(VERSION).orig.tar.gz \
	          emacs-wiki-$(VERSION))
	cp -r debian ../emacs-wiki-$(VERSION)
	rm -fr ../emacs-wiki-$(VERSION)/debian/.arch-ids
	(cd ../emacs-wiki-$(VERSION) && \
	  dpkg-buildpackage -v$(LASTUPLOAD) $(BUILDOPTS) \
	    -us -uc -rfakeroot && \
	  echo "Running lintian ..." && \
	  lintian -i ../emacs-wiki_$(VERSION)*.deb || : && \
	  echo "Done running lintian." && \
	  debsign)
	cp ../emacs-wiki_$(VERSION)* ../../dist

upload:
	(cd .. && gpg --detach emacs-wiki-$(VERSION).tar.gz && \
	  gpg --detach emacs-wiki-$(VERSION).zip && \
	  echo open ftp://savannah.nongnu.org > upload.lftp ; \
	  echo cd /incoming/savannah/emacs-wiki >> upload.lftp ; \
	  echo mput emacs-wiki-$(VERSION).zip* >> upload.lftp ; \
	  echo mput emacs-wiki-$(VERSION).tar.gz* >> upload.lftp ; \
	  echo close >> upload.lftp ; \
	  lftp -f upload.lftp ; \
	  rm -f upload.lftp)