mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Build: add polint target for i18n tests
https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
e3b537af18
commit
4498998f17
@ -46,13 +46,16 @@ rpms: dist-gzip rpmroot rpmdistdir
|
||||
cp $(RPMBUILD)/SRPMS/*.src.rpm $(top_builddir)/dist/srpms/
|
||||
|
||||
.PHONY: lint
|
||||
if WITH_POLINT
|
||||
POLINT_TARGET = polint
|
||||
endif WITH_POLINT
|
||||
if WITH_PYLINT
|
||||
PYLINT_TARGET = pylint
|
||||
endif WITH_PYLINT
|
||||
if WITH_JSLINT
|
||||
JSLINT_TARGET = jslint
|
||||
endif WITH_JSLINT
|
||||
lint: acilint apilint $(PYLINT_TARGET) $(JSLINT_TARGET)
|
||||
lint: acilint apilint $(POLINT_TARGET) $(PYLINT_TARGET) $(JSLINT_TARGET)
|
||||
|
||||
.PHONY: acilint
|
||||
acilint:
|
||||
@ -62,6 +65,10 @@ acilint:
|
||||
apilint:
|
||||
cd $(srcdir); ./makeapi --validate
|
||||
|
||||
.PHONY: polint
|
||||
polint:
|
||||
$(MAKE) -C $(srcdir)/po validate-src-strings
|
||||
|
||||
.PHONY: pylint
|
||||
pylint:
|
||||
FILES=`find $(top_srcdir) \
|
||||
|
10
configure.ac
10
configure.ac
@ -414,6 +414,16 @@ fi
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Linters
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE([i18ntests],
|
||||
AC_HELP_STRING([--disable-i18ntests],
|
||||
[do not execute ipatests/i18n.py
|
||||
(depends on python-polib)]),
|
||||
,
|
||||
[enable_i18ntests="yes"]
|
||||
)
|
||||
AC_SUBST([i18ntests])
|
||||
AM_CONDITIONAL([WITH_POLINT], [test "x${enable_i18ntests}" == "xyes"])
|
||||
|
||||
AC_ARG_WITH([pylint],
|
||||
AS_HELP_STRING([--with-pylint=path],
|
||||
[path to Pylint]),
|
||||
|
Loading…
Reference in New Issue
Block a user