]> git.saurik.com Git - apt.git/blob - buildlib/podomain.mak
Notice the user about "apt list -a" when only a single hit if found
[apt.git] / buildlib / podomain.mak
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
7 ifneq ($(APT_DOMAIN),none)
8
9 MY_DOMAIN := $(PACKAGE)
10 ifdef APT_DOMAIN
11 $($(LOCAL)-OBJS): CPPFLAGS := $(CPPFLAGS) -DAPT_DOMAIN='"$(APT_DOMAIN)"'
12 MY_DOMAIN := $(APT_DOMAIN)
13 endif
14
15 MKDIRS += $(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 $@
20 startup binary program clean update-po: $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
21
22 veryclean: veryclean/$(LOCAL)
23 veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
24 veryclean/po/$(LOCAL):
25 rm -f $(LIST)
26
27 endif