1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
SUBDIRS = config doc po shell-completion src
EXTRA_DIST = \
.flake8 \
CODE_OF_CONDUCT.md \
COPYING \
README.md \
autogen.sh \
${PACKAGE_NAME}.spec
CLEANFILES = *~ *\# .\#* *.tar*
DISTCLEANFILES = config.log intltool-* po/.intltool-merge-cache.lock
DISTCLEANDIRS = autom4te.cache ${PACKAGE_NAME}-*
dist: all
dist-container:
$(PODMAN) build --squash-all -t firewalld -f $(abs_top_srcdir)/Dockerfile $(abs_top_srcdir)
$(PODMAN) tag firewalld firewalld:$(PACKAGE_VERSION)
$(PODMAN) tag firewalld firewalld:latest
$(PODMAN) tag firewalld:$(PACKAGE_VERSION) quay.io/firewalld/firewalld:$(PACKAGE_VERSION)
$(PODMAN) tag firewalld:latest quay.io/firewalld/firewalld:latest
$(PODMAN) push quay.io/firewalld/firewalld:$(PACKAGE_VERSION)
$(PODMAN) push quay.io/firewalld/firewalld:latest
$(PODMAN) save --format oci-archive --output firewalld-oci-$(PACKAGE_VERSION).tar firewalld:$(PACKAGE_VERSION)
check-container check-integration installcheck-integration:
$(MAKE) -C src/tests $@
.PHONY: check-container check-integration installcheck-integration
.PHONY: dist-container
rpm test-rpm: dist
@rpmbuild -ta $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2
srpm test-srpm: dist
@rpmbuild -ts $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2
update-po:
ls $(top_srcdir)/po/*.po | sed 's/.*\/po\///;s/.po//' > $(top_srcdir)/po/LINGUAS
$(MAKE) -C po update-po ${PACKAGE_NAME}.pot
cp po/${PACKAGE_NAME}.pot po/${PACKAGE_NAME}.weblate.pot
# This merges translations from the upstream main branch.
# It's only meant to be used from the stable branches. Translations
# contributions are only done against main.
merge-po: update-po
git fetch -q https://github.com/firewalld/firewalld main; \
for po in $(top_srcdir)/po/*.po; do \
mv $${po} $${po}.old; \
git checkout -q FETCH_HEAD $${po}; \
msgcat --use-first -o $${po}.merged $${po} $${po}.old; \
mv $${po}.merged $${po}; \
git add $${po}; \
done
clean-po:
@for cat in `cat ${top_srcdir}/po/LINGUAS`; do \
msgattrib --translated --no-fuzzy --no-obsolete --force-po --no-location --clear-previous --strict $(top_srcdir)/po/$$cat.po -o $(top_srcdir)/po/$$cat.out; \
mv -f $(top_srcdir)/po/$$cat.out $(top_srcdir)/po/$$cat.po; \
done
report:
@for cat in `cat ${top_srcdir}/po/LINGUAS`; do \
echo -n "$$cat: "; \
$(MSGFMT) --statistics -o /dev/null $(top_srcdir)/po/$$cat.po; \
done
distclean-local:
-test -z "$(DISTCLEANDIRS)" || rm -rf $(DISTCLEANDIRS)
|