]> git.saurik.com Git - apt.git/blame_incremental - buildlib/podomain.mak
update symbols file with hints from the buildlogs
[apt.git] / buildlib / podomain.mak
... / ...
CommitLineData
1# -*- make -*-
2
3# This creates the file listing used by xgettext and friends based on the
4# declared domain of the make file. It also arranges to set the DOMAIN
5# CPPFLAG for the compilation.
6
7ifneq ($(APT_DOMAIN),none)
8
9MY_DOMAIN := $(PACKAGE)
10ifdef APT_DOMAIN
11$($(LOCAL)-OBJS): CPPFLAGS := $(CPPFLAGS) -DAPT_DOMAIN='"$(APT_DOMAIN)"'
12MY_DOMAIN := $(APT_DOMAIN)
13endif
14
15MKDIRS += $(PO_DOMAINS)/$(MY_DOMAIN)
16$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: SRC := $(addprefix $(SUBDIR)/,$(SOURCE))
17$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: makefile dirs
18 (echo $(SRC) | xargs -n1 echo) > $@.tmp
19 cmp --silent $@.tmp $@ || mv $@.tmp $@
20startup binary program clean update-po: $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
21
22veryclean: veryclean/$(LOCAL)
23veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
24veryclean/po/$(LOCAL):
25 rm -f $(LIST)
26
27endif