File: Makefile

package info (click to toggle)
bhl 1.7.3-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 580 kB
  • sloc: lisp: 3,662; sh: 129; makefile: 92
file content (153 lines) | stat: -rw-r--r-- 3,193 bytes parent folder | download | duplicates (3)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
###
### Makefile for the BHL mode
###
### Author:  Bastien Guerry <bastien1NOSPAM@free.fr>
### Revised: 23/07/2003
### Created: 11/16/2002
### URL: http://www.nongnu.org/bhl/

### (0) Set the following variables as you like.
### (1) ~$ make		
### (2) ~$ make info
### (3) ~$ make install
### (4) ~$ make install-info	
### (4) ~$ make pdf

################################################################
##
## EDIT THE FOLLOWINGS
##

prefix=/usr/share
infodir=$(prefix)/info

##
## Texinfo Manual
##

manual = bhl.texi	#English manual

##
## Compile engines
##

EMACS = emacs
#EMACS = xemacs
#EMACS = mule

##
## A directory where bhl.el[c] will be installed.
##

elispdir = $(prefix)/share/emacs/site-lisp/
#elispdir  = $(prefix)/lib/$(EMACS)/site-lisp
#elispdir = $(prefix)/lib/emacs

##
## A directory where bhl2* will be installed.
##
bindir = $(prefix)/bin/

## Conversion tools

TEXI2PDF = texi2pdf
TEXI2HTML = makeinfo --html --no-split
#TEXI2HTML = texi2html

################################################################
##
## DO NOT EDIT THE FOLLOWINGS
##

CP = cp
RM = rm -f
MKDIR = mkdir -p
TEMPFILE = tmp.el
PWD =

INSTALLINFO = `which install-info`

INSTALLINFO_ARGS  = bhl.info* $(infodir)/dir

################################################################

all: el

info: infofile

install: install-el install-scripts

install-info: inst-info

pdf: make-pdf

html: make-html

clean: 

################################################################

el: bhl.el
	@echo "Compiling EL files of BHL ... "
	@echo "PLEASE IGNORE WARNINGS IF DISPLAYED. TAKE IT EASY!"
	$(EMACS) -batch -q -no-site-file --eval "(byte-compile-file \"bhl.el\")"
	@echo "Compiling EL files of BHL ... done."
	@echo "You can now install the BHL mode (make install)."

install-el: bhl.elc
	-@if [ ! -d $(elispdir) ]; then \
		$(MKDIR) $(elispdir); \
	fi
	$(CP) bhl.el* $(elispdir)

################################################################

install-scripts: 
	-@if [ ! -d $(bindir) ]; then \
		$(MKDIR) $(bindir); \
	fi
	$(CP) contrib/bhl2* $(bindir)

################################################################

infofile:
#	$(EMACS) -batch -q -no-site-file -l texinfmt \
#		-f batch-texinfo-format $(manual)
#	Uncomment the two lines above and uncomment the next line 
#	if you prefer to use makeinfo instead of texinfmt.
	makeinfo --no-split $(manual)
	@echo "You can now install the info file (make install-info)."

inst-info:
	-@if [ ! -d $(infodir) ]; then \
		$(MKDIR) $(infodir); \
	fi; \
	cp bhl.info* $(infodir)
	-@if [ -x "$(INSTALLINFO)" ]; then \
		$(INSTALLINFO) $(INSTALLINFO_ARGS); \
	else \
	echo "Don't forget to edit $(infodir)/dir so that it includes the info pages for the BHL mode."; \
	fi

################################################################

make-pdf:	
	@echo "Creating PDF manual..."
	$(TEXI2PDF) $(manual)
	@echo "... done."

################################################################

make-html:
	@echo "Creating HTML manual..."
	$(TEXI2HTML) $(manual)
	@echo "... done."

################################################################

clean:
	$(RM) *cps *elc *fn *aux *cp *ky *log *pg *tp *toc *vr *~ $(TEMPFILE)

##
## End of Makefile
##