cleaned up some of the document making
authorDavid Schleef <ds@schleef.org>
Thu, 4 Oct 2001 20:35:04 +0000 (20:35 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 4 Oct 2001 20:35:04 +0000 (20:35 +0000)
doc/Makefile

index 4127acb3b8fc27fc4dda845abd70ebb2d9fa003e..d9d8293240c65227ac0c8162140b7dae3068db0d 100644 (file)
@@ -1,13 +1,25 @@
 
+locales = de
+
 all:
        sgml2html comedilib.sgml
        sgml2txt comedilib.sgml
 
 messages: .phony
        xgettext -k_ -k_s $(shell find .. -name '*.c')
-       for i in de;do \
+       for i in $(locales);do \
          msgmerge po/$$i.po messages.po -o $$i.po; \
-         msgfmt $$i.po -o $$i/LC_MESSAGES/comedilib.mo; \
+         mkdir -p locale/$$i/LC_MESSAGES; \
+         msgfmt $$i.po -o locale/$$i/LC_MESSAGES/comedilib.mo; \
+       done
+
+distclean: clean
+       rm -f *.html *.txt
+       rm -rf locale
+
+clean:
+       for i in $(locales);do \
+         rm -f $$i.po ; \
        done
 
 .phony: