Blame view

document.mk 1.26 KB
be26d4ea   Mario Lang   Imported Upstream...
1
2
3
4
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
ec859a60   samuel thibault   New upstream vers...
5
# Copyright (C) 1995-2018 by The BRLTTY Developers.
be26d4ea   Mario Lang   Imported Upstream...
6
7
8
9
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
ec859a60   samuel thibault   New upstream vers...
10
11
12
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
be26d4ea   Mario Lang   Imported Upstream...
13
#
ca6019f1   Mario Lang   Imported Upstream...
14
# Web Page: http://brltty.com/
be26d4ea   Mario Lang   Imported Upstream...
15
16
17
18
19
20
21
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

LOCALE = C
SETLOCALE = LC_ALL=$(LOCALE)

67e7bfbc   samuel thibault   New upstream vers...
22
all: all-yes
d8488191   samuel thibault   Imported Upstream...
23
24
25
26
all-yes: txt html
all-no:
	@echo linuxdoc is not installed - document will not be made

be26d4ea   Mario Lang   Imported Upstream...
27
28
29
30
txt: $(DOCUMENT_NAME).txt
html: html.made

$(DOCUMENT_NAME).txt: $(SRC_DIR)/$(DOCUMENT_NAME).sgml
67e7bfbc   samuel thibault   New upstream vers...
31
	$(SETLOCALE) linuxdoc -B txt -f -l $(DOCUMENT_LANGUAGE) -c latin $<
6a26ecf7   Mario Lang   Imported Upstream...
32
	sed -e 's/\x1B\[[0-9][0-9]*m//g' -i $@
be26d4ea   Mario Lang   Imported Upstream...
33
34

html.made: $(SRC_DIR)/$(DOCUMENT_NAME).sgml
6a26ecf7   Mario Lang   Imported Upstream...
35
	$(SETLOCALE) linuxdoc -B html -l $(DOCUMENT_LANGUAGE) -c ascii $<
be26d4ea   Mario Lang   Imported Upstream...
36
37
38
39
	touch $@

clean::
	-rm -f -- *.txt *.html *.made