2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-27 18:23:06 +05:30
|
|
|
LINGUAS = de fr it pl ru sv
|
2007-10-07 17:17:33 +05:30
|
|
|
|
2007-10-07 17:15:14 +05:30
|
|
|
# subdirectories for translated manual pages
|
2007-10-07 17:17:57 +05:30
|
|
|
DIST_SUBDIRS = cs de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW
|
2007-10-07 17:17:22 +05:30
|
|
|
if USE_NLS
|
|
|
|
SUBDIRS = $(DIST_SUBDIRS)
|
|
|
|
else
|
|
|
|
SUBDIRS =
|
|
|
|
endif
|
2007-10-07 17:15:14 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
man_XMANS = \
|
|
|
|
chage.1.xml \
|
|
|
|
chfn.1.xml \
|
2007-10-07 17:17:33 +05:30
|
|
|
chgpasswd.8.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
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 \
|
2007-10-07 17:17:01 +05:30
|
|
|
newgrp.1.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
newusers.8.xml \
|
2007-10-07 17:17:22 +05:30
|
|
|
nologin.8.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
passwd.1.xml \
|
|
|
|
passwd.5.xml \
|
|
|
|
porttime.5.xml \
|
|
|
|
pwck.8.xml \
|
|
|
|
pwconv.8.xml \
|
|
|
|
shadow.3.xml \
|
|
|
|
shadow.5.xml \
|
2007-10-07 17:17:01 +05:30
|
|
|
sg.1.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
su.1.xml \
|
|
|
|
suauth.5.xml \
|
|
|
|
useradd.8.xml \
|
|
|
|
userdel.8.xml \
|
|
|
|
usermod.8.xml \
|
|
|
|
vipw.8.xml
|
|
|
|
|
2007-10-07 17:14:38 +05:30
|
|
|
man_MANS = \
|
2007-10-07 17:18:07 +05:30
|
|
|
$(man_nopam) \
|
2007-10-07 17:14:38 +05:30
|
|
|
chage.1 \
|
|
|
|
chfn.1 \
|
2007-10-07 17:17:33 +05:30
|
|
|
chgpasswd.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
chpasswd.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
chsh.1 \
|
2007-10-07 17:14:51 +05:30
|
|
|
expiry.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
faillog.5 \
|
|
|
|
faillog.8 \
|
2007-10-07 17:15:40 +05:30
|
|
|
getspnam.3 \
|
2007-10-07 17:14:51 +05:30
|
|
|
gpasswd.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
groupadd.8 \
|
|
|
|
groupdel.8 \
|
2007-10-07 17:17:57 +05:30
|
|
|
groupmems.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
groupmod.8 \
|
2007-10-07 17:15:23 +05:30
|
|
|
groups.1 \
|
2007-10-07 17:14:51 +05:30
|
|
|
grpck.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
grpconv.8 \
|
|
|
|
grpunconv.8 \
|
2007-10-07 17:16:07 +05:30
|
|
|
gshadow.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
lastlog.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
login.1 \
|
|
|
|
login.defs.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
logoutd.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
newgrp.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
newusers.8 \
|
2007-10-07 17:17:22 +05:30
|
|
|
nologin.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
passwd.1 \
|
|
|
|
passwd.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
pwck.8 \
|
|
|
|
pwconv.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
pwunconv.8 \
|
2007-10-07 17:14:59 +05:30
|
|
|
sg.1 \
|
2007-10-07 17:15:40 +05:30
|
|
|
shadow.3 \
|
2007-10-07 17:14:51 +05:30
|
|
|
shadow.5 \
|
|
|
|
su.1 \
|
|
|
|
suauth.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
useradd.8 \
|
|
|
|
userdel.8 \
|
|
|
|
usermod.8 \
|
2007-10-07 17:14:59 +05:30
|
|
|
vigr.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
vipw.8
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:18:07 +05:30
|
|
|
man_nopam = \
|
|
|
|
limits.5 \
|
|
|
|
login.access.5 \
|
|
|
|
porttime.5
|
|
|
|
|
|
|
|
if !USE_PAM
|
|
|
|
man_MANS += $(man_nopam)
|
|
|
|
endif
|
|
|
|
|
2007-10-07 17:17:33 +05:30
|
|
|
EXTRA_DIST = \
|
|
|
|
$(man_MANS) \
|
2007-10-07 17:16:16 +05:30
|
|
|
$(man_XMANS) \
|
2007-10-07 17:18:07 +05:30
|
|
|
$(man_nopam) \
|
2007-10-07 17:16:25 +05:30
|
|
|
id.1 \
|
2007-10-07 17:16:16 +05:30
|
|
|
id.1.xml \
|
2007-10-07 17:16:25 +05:30
|
|
|
sulogin.8 \
|
|
|
|
sulogin.8.xml
|
2007-10-07 17:16:16 +05:30
|
|
|
|
2007-10-07 17:17:01 +05:30
|
|
|
if ENABLE_REGENERATE_MAN
|
|
|
|
|
2007-11-22 05:31:58 +05:30
|
|
|
if USE_PAM
|
|
|
|
PAM_COND=pam
|
|
|
|
else
|
|
|
|
PAM_COND=no_pam
|
|
|
|
endif
|
|
|
|
TUTU_COND=tutu
|
|
|
|
|
2007-11-17 23:17:02 +05:30
|
|
|
%: %.xml
|
2007-11-22 05:31:58 +05:30
|
|
|
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(TUTU_COND)" \
|
|
|
|
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-11-17 23:17:02 +05:30
|
|
|
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-11-17 23:17:02 +05:30
|
|
|
getspnam.3: shadow.3
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-11-17 23:17:02 +05:30
|
|
|
vigr.8: vipw.8
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-11-18 00:15:22 +05:30
|
|
|
CLEANFILES = $(man_MANS)
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
POFILES = $(foreach lang, $(LINGUAS), $(lang)/$(lang).po)
|
|
|
|
|
2007-11-18 00:15:22 +05:30
|
|
|
all: $(POFILES)
|
2007-10-07 17:17:33 +05:30
|
|
|
|
2007-10-07 17:17:45 +05:30
|
|
|
$(POFILES): shadow-man-pages.pot
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
shadow-man-pages.pot: $(man_XMANS)
|
|
|
|
|
|
|
|
dist-hook: dist-po-files
|
|
|
|
|
|
|
|
.PHONY: dist-po-files
|
|
|
|
dist-po-files: $(POFILES) shadow-man-pages.pot
|
|
|
|
@for lang in $(LINGUAS); do \
|
|
|
|
echo " $(mkinstalldirs) $(distdir)/$$lang"; \
|
|
|
|
$(mkinstalldirs) "$(distdir)/$$lang"; \
|
|
|
|
done
|
|
|
|
@for file in $(POFILES); do \
|
|
|
|
echo "$(INSTALL_DATA) $(srcdir)/$$file $(distdir)/$$file"; \
|
|
|
|
$(INSTALL_DATA) "$(srcdir)/$$file" "$(distdir)/$$file"; \
|
|
|
|
done
|
|
|
|
$(INSTALL_DATA) "$(srcdir)/shadow-man-pages.pot" "$(distdir)/shadow-man-pages.pot"
|
|
|
|
|
|
|
|
shadow-man-pages.pot: $(man_XMANS)
|
|
|
|
xml2po -o $@ $(man_XMANS)
|
|
|
|
|
|
|
|
.PHONY: update-po
|
|
|
|
update-po: shadow-man-pages.pot
|
|
|
|
@for lang in $(LINGUAS); do \
|
|
|
|
echo "$$lang:"; \
|
|
|
|
echo "$(MSGMERGE) -o $$lang/$$lang.po $$lang/$$lang.po shadow-man-pages.pot"; \
|
|
|
|
$(MSGMERGE) -o $$lang/$$lang.po $$lang/$$lang.po shadow-man-pages.pot; \
|
|
|
|
done
|
2007-10-07 17:17:45 +05:30
|
|
|
|
|
|
|
else
|
|
|
|
$(man_MANS):
|
|
|
|
@echo ""
|
|
|
|
@echo "Error: you need to run configure with '--enable-man'"
|
|
|
|
@echo " in order to regenerate man pages."
|
|
|
|
@echo ""
|
|
|
|
@false
|
|
|
|
endif
|