AlkantarClanX12
| Current Path : /usr/share/doc/mailman/examples/ |
| Current File : //usr/share/doc/mailman/examples/Makefile |
# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# NOTE: Makefile.in is converted into Makefile by the configure script
# in the parent directory. Once configure has run, you can recreate
# the Makefile by running just config.status.
# Variables set by configure
srcdir= .
bindir= ${exec_prefix}/bin
prefix= /var/lib/mailman
exec_prefix= ${prefix}
DESTDIR=
CC= gcc
CHMOD= @CHMOD@
INSTALL= /usr/bin/install -c
TRUE= /bin/true
DEFS= -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STRERROR=1 -DHAVE_SETREGID=1 -DHAVE_SYSLOG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYSLOG_H=1 -DGETGROUPS_T=gid_t -DHAVE_VSNPRINTF=1
# Customizable but not set by configure
OPT= -g -O2
CFLAGS= $(OPT) $(DEFS)
TEMPLATEDIR= $(prefix)/templates
SHELL= /bin/sh
LANGUAGES= ar ast ca cs da de el en es et eu fa fi fr gl he hr hu ia it \
ja ko lt nl no pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN \
zh_TW
# Modes for directories and executables created by the install
# process. Default to group-writable directories but
# user-only-writable for executables.
DIRMODE= 775
EXEMODE= 755
FILEMODE= 644
INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
# Rules
all:
install:
# charsets taken from Mailman/Defaults.py.in (all calls to add_language)
# except gl which pretends to be utf-8 but isn’t (except one file which we patch)
CHARSET_ar=utf-8; \
CHARSET_ast=iso-8859-1; \
CHARSET_ca=utf-8; \
CHARSET_cs=iso-8859-2; \
CHARSET_da=iso-8859-1; \
CHARSET_de=iso-8859-1; \
CHARSET_en=us-ascii; \
CHARSET_es=iso-8859-1; \
CHARSET_et=iso-8859-15; \
CHARSET_eu=iso-8859-15; \
CHARSET_fa=utf-8; \
CHARSET_fi=iso-8859-1; \
CHARSET_fr=iso-8859-1; \
CHARSET_gl=iso-8859-1; \
CHARSET_el=iso-8859-7; \
CHARSET_he=utf-8; \
CHARSET_hr=iso-8859-2; \
CHARSET_hu=iso-8859-2; \
CHARSET_ia=iso-8859-15; \
CHARSET_it=iso-8859-1; \
CHARSET_ja=euc-jp; \
CHARSET_ko=euc-kr; \
CHARSET_lt=iso-8859-13; \
CHARSET_nl=iso-8859-1; \
CHARSET_no=iso-8859-1; \
CHARSET_pl=iso-8859-2; \
CHARSET_pt=iso-8859-1; \
CHARSET_pt_BR=iso-8859-1; \
CHARSET_ro=iso-8859-2; \
CHARSET_ru=koi8-r; \
CHARSET_sk=utf-8; \
CHARSET_sl=iso-8859-2; \
CHARSET_sr=utf-8; \
CHARSET_sv=iso-8859-1; \
CHARSET_tr=iso-8859-9; \
CHARSET_uk=utf-8; \
CHARSET_vi=utf-8; \
CHARSET_zh_CN=utf-8; \
CHARSET_zh_TW=utf-8; \
for d in $(LANGUAGES); \
do \
eval cs='$$CHARSET_'$$d; \
test -n "$$cs" || cs=cp1252; \
$(srcdir)/../mkinstalldirs $(DESTDIR)$(TEMPLATEDIR)/$$d; \
for f in $(srcdir)/$$d/*.html $(srcdir)/$$d/*.txt; \
do \
bn=$$(basename $$f); \
if ! iconv -f $$cs -t utf-8 <$$f; then \
echo >&2 Warning: broken encoding in $$f; \
iconv -c -f cp1252 -t utf-8 <$$f; \
fi >$$f.utf-8; \
$(INSTALL) -m $(FILEMODE) $$f.utf-8 $(DESTDIR)$(TEMPLATEDIR)/$$d/$$bn; \
rm -f $$f.utf-8; \
done; \
done
finish:
clean:
distclean:
-rm -f Makefile