]> git.saurik.com Git - apt.git/commitdiff
gettext stuff
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:34 +0000 (16:59 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:34 +0000 (16:59 +0000)
Author: jgg
Date: 2002-10-16 05:35:41 GMT
gettext stuff

buildlib/podomain.mak [new file with mode: 0644]

diff --git a/buildlib/podomain.mak b/buildlib/podomain.mak
new file mode 100644 (file)
index 0000000..2bf72ac
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- make -*-
+
+# This creates the file listing used by xgettext and friends based on the
+# declared domain of the make file. It also arranges to set the DOMAIN 
+# CPPFLAG for the compilation.
+
+MY_DOMAIN := $(PACKAGE)
+ifdef DOMAIN
+$($(LOCAL)-OBJS): CPPFLAGS := $(CPPFLAGS) -DDOMAIN='"$(DOMAIN)"'
+MY_DOMAIN := $(DOMAIN)
+endif
+
+MKDIRS += $(PO_DOMAINS)/$(MY_DOMAIN)
+$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: SRC := $(addprefix $(SUBDIR)/,$(SOURCE))
+$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: makefile
+       (echo $(SRC) | xargs -n1 echo) > $@
+all: $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
+
+veryclean: veryclean/$(LOCAL)
+veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
+veryclean/po/$(LOCAL):
+       rm -f $(LIST)