~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to errors/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
#
 
3
# $Id: Makefile.am,v 1.13 2006/03/10 22:52:45 hno Exp $
 
4
#
 
5
 
 
6
errordir = $(datadir)/errors
 
7
 
 
8
 
 
9
##dist-hook eveything
 
10
 
 
11
DEFAULT_ERROR_DIR       = $(errordir)
 
12
 
 
13
INSTALL_LANGUAGES       = @ERR_LANGUAGES@
 
14
LANGUAGES       = \
 
15
                Azerbaijani \
 
16
                Bulgarian \
 
17
                Catalan \
 
18
                Czech \
 
19
                Danish \
 
20
                Dutch \
 
21
                English \
 
22
                Estonian \
 
23
                Finnish \
 
24
                French \
 
25
                German \
 
26
                Greek \
 
27
                Hebrew \
 
28
                Hungarian \
 
29
                Italian \
 
30
                Japanese \
 
31
                Korean \
 
32
                Lithuanian \
 
33
                Polish \
 
34
                Portuguese \
 
35
                Romanian \
 
36
                Russian-1251 \
 
37
                Russian-koi8-r \
 
38
                Serbian \
 
39
                Simplify_Chinese \
 
40
                Slovak \
 
41
                Spanish \
 
42
                Swedish \
 
43
                Traditional_Chinese \
 
44
                Turkish 
 
45
 
 
46
install-data-local: 
 
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; \
 
52
                done \
 
53
        done
 
54
 
 
55
uninstall-local:
 
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`; \
 
59
                done \
 
60
        done
 
61
 
 
62
# undocumented hack.  You can use this target to create multi-lingual
 
63
# error pages.  For example:
 
64
#
 
65
#       make ADDLANG=English DESTLANG=French addlang
 
66
#
 
67
# by Andres Kroonmaa <andre@mail.lbi.ee>
 
68
#
 
69
addlang: all
 
70
        -@if test -d $(srcdir)/$(ADDLANG); then \
 
71
        if test -d $(DEFAULT_ERROR_DIR)/$(DESTLANG); then \
 
72
        cd $(srcdir)/$(ADDLANG)/ ; \
 
73
        for f in ERR_*; do \
 
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; \
 
78
                fi; \
 
79
        done; \
 
80
        fi \
 
81
        fi
 
82
 
 
83
dist-hook:
 
84
        @ for lang in $(LANGUAGES); do \
 
85
          if test "$$lang" = .; then :; else \
 
86
            test -d $(distdir)/$$lang \
 
87
            || mkdir $(distdir)/$$lang \
 
88
            || exit 1; \
 
89
            cp -p $(srcdir)/$$lang/ERR_*  $(distdir)/$$lang \
 
90
              || exit 1; \
 
91
          fi; \
 
92
        done