File: Makefile.in

package info (click to toggle)
brltty 4.4-10%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,812 kB
  • sloc: ansic: 88,955; sh: 4,805; makefile: 1,569; tcl: 652; awk: 596; java: 302; ml: 293; python: 159
file content (62 lines) | stat: -rw-r--r-- 2,194 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
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2012 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any
# later version. Please see the file LICENSE-GPL for details.
#
# Web Page: http://mielke.cc/brltty/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

all:: objects languages

COPYRIGHT_HOLDER = The BRLTTY Developers
BUGS_ADDRESS = dave@mielke.cc

TEMPLATE_EXTENSION = pot
SOURCE_EXTENSION = po
OBJECT_EXTENSION = mo

LANGUAGE_CODES = de fr
OBJECT_FILES = $(LANGUAGE_CODES:=.$(OBJECT_EXTENSION))

%.$(OBJECT_EXTENSION): $(SRC_DIR)/%.$(SOURCE_EXTENSION)
	msgfmt --output-file $@ $<

objects: $(OBJECT_FILES)

#TEMPLATE_FILE = $(PACKAGE_NAME).$(TEMPLATE_EXTENSION)
#$(TEMPLATE_FILE): $(BLD_TOP)$(PGM_DIR)/cmds.auto.h
#	$(SRC_TOP)mkpot -n "$(PACKAGE_NAME)" -v "$(PACKAGE_VERSION)" -o $@ -b "$(BUGS_ADDRESS)" -c "$(COPYRIGHT_HOLDER)" $(SRC_TOP) $(BLD_TOP)
template $(TEMPLATE_EXTENSION): $(TEMPLATE_FILE)

%.$(SOURCE_EXTENSION): $(TEMPLATE_FILE)
	msgmerge --quiet --force-po --no-wrap --sort-output --update -- $@ $(TEMPLATE_FILE)

LANGUAGES_FILE = LINGUAS
$(LANGUAGES_FILE):
	ls -1 *.$(SOURCE_EXTENSION) | sed -e 's/\..*//' | sort >$@
languages: $(LANGUAGES_FILE)

clean::
	-rm -f -- *.$(OBJECT_EXTENSION) *.$(TEMPLATE_EXTENSION) $(LANGUAGES_FILE) *~

install:: objects install-locale-directory
	for language in $(LANGUAGE_CODES); \
	do \
	   directory="$(INSTALL_LOCALE_DIRECTORY)/$${language}/LC_MESSAGES"; \
           $(INSTALL_DIRECTORY) "$${directory}"; \
	   $(INSTALL_DATA) "$${language}.$(OBJECT_EXTENSION)" "$${directory}/$(PACKAGE_NAME).$(OBJECT_EXTENSION)"; \
	done

uninstall::
	-rm -f -- $(INSTALL_LOCALE_DIRECTORY)/*/*/$(PACKAGE_NAME).$(OBJECT_EXTENSION)