6b14946d81
Makefile. * man/Makefile.am: Build zh_CN pages. * man/generate_translations.mak: Add config.xml to CLEANFILES. * man/po/zh_CN.po: limits, groups, faillog, expiry should not be translated (command name, file name), also this broke the build system as they are used to derive manpage names.
197 lines
3.3 KiB
Makefile
197 lines
3.3 KiB
Makefile
|
|
# subdirectories for translated manual pages
|
|
if USE_NLS
|
|
SUBDIRS = po cs de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW
|
|
else
|
|
SUBDIRS =
|
|
endif
|
|
|
|
man_MANS = \
|
|
chage.1 \
|
|
chfn.1 \
|
|
chgpasswd.8 \
|
|
chpasswd.8 \
|
|
chsh.1 \
|
|
expiry.1 \
|
|
faillog.5 \
|
|
faillog.8 \
|
|
getspnam.3 \
|
|
gpasswd.1 \
|
|
groupadd.8 \
|
|
groupdel.8 \
|
|
groupmems.8 \
|
|
groupmod.8 \
|
|
groups.1 \
|
|
grpck.8 \
|
|
grpconv.8 \
|
|
grpunconv.8 \
|
|
gshadow.5 \
|
|
lastlog.8 \
|
|
login.1 \
|
|
login.defs.5 \
|
|
logoutd.8 \
|
|
newgrp.1 \
|
|
newusers.8 \
|
|
nologin.8 \
|
|
passwd.1 \
|
|
passwd.5 \
|
|
pwck.8 \
|
|
pwconv.8 \
|
|
pwunconv.8 \
|
|
sg.1 \
|
|
shadow.3 \
|
|
shadow.5 \
|
|
su.1 \
|
|
suauth.5 \
|
|
useradd.8 \
|
|
userdel.8 \
|
|
usermod.8 \
|
|
vigr.8 \
|
|
vipw.8
|
|
|
|
man_nopam = \
|
|
limits.5 \
|
|
login.access.5 \
|
|
porttime.5
|
|
|
|
if !USE_PAM
|
|
man_MANS += $(man_nopam)
|
|
endif
|
|
|
|
man_XMANS = \
|
|
chage.1.xml \
|
|
chfn.1.xml \
|
|
chgpasswd.8.xml \
|
|
chpasswd.8.xml \
|
|
chsh.1.xml \
|
|
expiry.1.xml \
|
|
faillog.5.xml \
|
|
faillog.8.xml \
|
|
gpasswd.1.xml \
|
|
groupadd.8.xml \
|
|
groupdel.8.xml \
|
|
groupmems.8.xml \
|
|
groupmod.8.xml \
|
|
groups.1.xml \
|
|
grpck.8.xml \
|
|
gshadow.5.xml \
|
|
lastlog.8.xml \
|
|
limits.5.xml \
|
|
login.1.xml \
|
|
login.access.5.xml \
|
|
login.defs.5.xml \
|
|
logoutd.8.xml \
|
|
newgrp.1.xml \
|
|
newusers.8.xml \
|
|
nologin.8.xml \
|
|
passwd.1.xml \
|
|
passwd.5.xml \
|
|
porttime.5.xml \
|
|
pwck.8.xml \
|
|
pwconv.8.xml \
|
|
shadow.3.xml \
|
|
shadow.5.xml \
|
|
sg.1.xml \
|
|
su.1.xml \
|
|
suauth.5.xml \
|
|
useradd.8.xml \
|
|
userdel.8.xml \
|
|
usermod.8.xml \
|
|
vipw.8.xml
|
|
|
|
login_defs_v = \
|
|
CHFN_AUTH.xml \
|
|
CHFN_RESTRICT.xml \
|
|
CHSH_AUTH.xml \
|
|
CONSOLE.xml \
|
|
CONSOLE_GROUPS.xml \
|
|
CREATE_HOME.xml \
|
|
DEFAULT_HOME.xml \
|
|
ENCRYPT_METHOD.xml \
|
|
ENV_HZ.xml \
|
|
ENVIRON_FILE.xml \
|
|
ENV_PATH.xml \
|
|
ENV_SUPATH.xml \
|
|
ENV_TZ.xml \
|
|
ERASECHAR.xml \
|
|
FAIL_DELAY.xml \
|
|
FAILLOG_ENAB.xml \
|
|
FAKE_SHELL.xml \
|
|
FTMP_FILE.xml \
|
|
GID_MAX.xml \
|
|
HUSHLOGIN_FILE.xml \
|
|
ISSUE_FILE.xml \
|
|
KILLCHAR.xml \
|
|
LASTLOG_ENAB.xml \
|
|
LOGIN_RETRIES.xml \
|
|
LOGIN_STRING.xml \
|
|
LOGIN_TIMEOUT.xml \
|
|
LOG_OK_LOGINS.xml \
|
|
LOG_UNKFAIL_ENAB.xml \
|
|
MAIL_CHECK_ENAB.xml \
|
|
MAIL_DIR.xml \
|
|
MAX_MEMBERS_PER_GROUP.xml \
|
|
MD5_CRYPT_ENAB.xml \
|
|
MOTD_FILE.xml \
|
|
NOLOGINS_FILE.xml \
|
|
OBSCURE_CHECKS_ENAB.xml \
|
|
PASS_ALWAYS_WARN.xml \
|
|
PASS_CHANGE_TRIES.xml \
|
|
PASS_MAX_DAYS.xml \
|
|
PASS_MAX_LEN.xml \
|
|
PASS_MIN_DAYS.xml \
|
|
PASS_WARN_AGE.xml \
|
|
PORTTIME_CHECKS_ENAB.xml \
|
|
QUOTAS_ENAB.xml \
|
|
SHA_CRYPT_MIN_ROUNDS.xml \
|
|
SULOG_FILE.xml \
|
|
SU_NAME.xml \
|
|
SU_WHEEL_ONLY.xml \
|
|
SYSLOG_SG_ENAB.xml \
|
|
SYSLOG_SU_ENAB.xml \
|
|
TCB_AUTH_GROUP.xml \
|
|
TCB_SYMLINKS.xml \
|
|
TTYGROUP.xml \
|
|
TTYTYPE_FILE.xml \
|
|
UID_MAX.xml \
|
|
ULIMIT.xml \
|
|
UMASK.xml \
|
|
USERDEL_CMD.xml \
|
|
USERGROUPS_ENAB.xml \
|
|
USE_TCB.xml \
|
|
SYS_GID_MAX.xml \
|
|
SYS_UID_MAX.xml
|
|
|
|
EXTRA_DIST = \
|
|
$(man_MANS) \
|
|
$(man_XMANS) \
|
|
$(addprefix login.defs.d/,$(login_defs_v)) \
|
|
$(man_nopam) \
|
|
id.1 \
|
|
id.1.xml \
|
|
sulogin.8 \
|
|
sulogin.8.xml \
|
|
generate_mans.mak \
|
|
generate_translations.mak
|
|
|
|
generate_mans.deps: *.xml
|
|
echo "# This file is generated" > $@
|
|
awk 'BEGIN{FS="\"";} /^<!ENTITY .* * SYSTEM ".*">$$/{ f=FILENAME; sub(/.xml/,"",f); print f ": " $$2 }' $(man_XMANS) >> $@
|
|
|
|
if ENABLE_REGENERATE_MAN
|
|
|
|
@ENABLE_REGENERATE_MAN_TRUE@include generate_mans.deps
|
|
|
|
include generate_mans.mak
|
|
|
|
CLEANFILES = $(man_MANS)
|
|
|
|
else
|
|
$(man_MANS):
|
|
@echo ""
|
|
@echo "Error: you need to run configure with '--enable-man'"
|
|
@echo " in order to regenerate man pages."
|
|
@echo ""
|
|
@false
|
|
endif
|