1
## Process this file with automake to produce Makefile.in
3
# $Id: Makefile.am,v 1.13 2006/03/10 22:52:45 hno Exp $
6
errordir = $(datadir)/errors
11
DEFAULT_ERROR_DIR = $(errordir)
13
INSTALL_LANGUAGES = @ERR_LANGUAGES@
47
@for l in $(INSTALL_LANGUAGES); do \
48
$(mkinstalldirs) $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l && \
49
for f in $(srcdir)/$$l/ERR_*; do \
50
echo "$(INSTALL_DATA) $$f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l"; \
51
$(INSTALL_DATA) $$f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l; \
56
@for l in $(INSTALL_LANGUAGES); do \
57
for f in $(srcdir)/$$l/ERR_*; do \
58
rm -f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l/`basename $$f`; \
62
# undocumented hack. You can use this target to create multi-lingual
63
# error pages. For example:
65
# make ADDLANG=English DESTLANG=French addlang
67
# by Andres Kroonmaa <andre@mail.lbi.ee>
70
-@if test -d $(srcdir)/$(ADDLANG); then \
71
if test -d $(DEFAULT_ERROR_DIR)/$(DESTLANG); then \
72
cd $(srcdir)/$(ADDLANG)/ ; \
74
if test -f $(DEFAULT_ERROR_DIR)/$(DESTLANG)/$$f ; then \
75
echo "appending $(ADDLANG)/$$f"; \
76
echo "<HR>" >> $(DEFAULT_ERROR_DIR)/$(DESTLANG)/$$f ; \
77
cat $$f >> $(DEFAULT_ERROR_DIR)/$(DESTLANG)/$$f; \
84
@ for lang in $(LANGUAGES); do \
85
if test "$$lang" = .; then :; else \
86
test -d $(distdir)/$$lang \
87
|| mkdir $(distdir)/$$lang \
89
cp -p $(srcdir)/$$lang/ERR_* $(distdir)/$$lang \