summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/es/makefile11
-rw-r--r--doc/fr/makefile11
-rw-r--r--doc/it/makefile11
-rw-r--r--doc/ja/makefile11
-rw-r--r--doc/lang.makefile (renamed from doc/de/makefile)4
-rw-r--r--doc/makefile15
-rw-r--r--doc/pl/makefile11
-rw-r--r--doc/pt_BR/makefile11
8 files changed, 14 insertions, 71 deletions
diff --git a/doc/es/makefile b/doc/es/makefile
deleted file mode 100644
index 0b5b52222..000000000
--- a/doc/es/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/es
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=es
-
-include $(PO4A_MANPAGE_H)
diff --git a/doc/fr/makefile b/doc/fr/makefile
deleted file mode 100644
index 214534736..000000000
--- a/doc/fr/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/fr
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=fr
-
-include $(PO4A_MANPAGE_H)
diff --git a/doc/it/makefile b/doc/it/makefile
deleted file mode 100644
index 2179ec15f..000000000
--- a/doc/it/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/it
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=it
-
-include $(PO4A_MANPAGE_H)
diff --git a/doc/ja/makefile b/doc/ja/makefile
deleted file mode 100644
index f44bb1c0f..000000000
--- a/doc/ja/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/ja
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=ja
-
-include $(PO4A_MANPAGE_H)
diff --git a/doc/de/makefile b/doc/lang.makefile
index a827a0f24..9fdc6ea70 100644
--- a/doc/de/makefile
+++ b/doc/lang.makefile
@@ -1,11 +1,11 @@
# -*- make -*-
BASE=../..
-SUBDIR=doc/de
+SUBDIR=doc/@@LANG@@
# Bring in the default rules
include ../../buildlib/defaults.mak
# Language Code of this translation
-LC=de
+LC=@@LANG@@
include $(PO4A_MANPAGE_H)
diff --git a/doc/makefile b/doc/makefile
index 6e6186466..93504e23e 100644
--- a/doc/makefile
+++ b/doc/makefile
@@ -46,9 +46,14 @@ TO = $(DOC)
TARGET = binary
include $(COPY_H)
-#.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
+.PHONY: clean clean-subdirs veryclean veryclean-subdirs all binary doc
doc:
- for dir in $(SUBDIRS); do\
+ for i in $(shell ls po/*.po | sed -r 's#po/([a-z]+[A-Z_]*).po#\1#'); do \
+ test -d $$i || mkdir $$i; \
+ test -f $$i/makefile || sed "s#@@LANG@@#$$i#" lang.makefile > $$i/makefile; \
+ done
+ # it is likely that we have changed the list, so SUBDIRS is incorrect
+ for dir in $(dir $(wildcard */makefile)); do\
$(MAKE) -C $$dir $@; \
done
@@ -70,7 +75,7 @@ doc: po4a
clean: po4a-clean
-.PHONY: update-po po4a
+.PHONY: update-po po4a stats
update-po:
po4a --previous --no-backups --force --no-translations po4a.conf
@@ -79,6 +84,10 @@ po4a-clean:
po4a:
po4a --previous --no-backups po4a.conf
+
+stats:
+ for i in po/*.po; do echo -n "$$i: "; msgfmt --statistics $$i; done
+
endif
ifdef DOXYGEN
diff --git a/doc/pl/makefile b/doc/pl/makefile
deleted file mode 100644
index 7e77b29b9..000000000
--- a/doc/pl/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/pl
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=pl
-
-include $(PO4A_MANPAGE_H)
diff --git a/doc/pt_BR/makefile b/doc/pt_BR/makefile
deleted file mode 100644
index 6e485bbf6..000000000
--- a/doc/pt_BR/makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- make -*-
-BASE=../..
-SUBDIR=doc/pt_BR
-
-# Bring in the default rules
-include ../../buildlib/defaults.mak
-
-# Language Code of this translation
-LC=pt_BR
-
-include $(PO4A_MANPAGE_H)