]> git.saurik.com Git - apt-legacy.git/blob - buildlib/podomain.mak
Finalized 2.1 Cydia.
[apt-legacy.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 MY_DOMAIN := $(PACKAGE)
8 ifdef APT_DOMAIN
9 $($(LOCAL)-OBJS): CPPFLAGS := $(CPPFLAGS) -DAPT_DOMAIN='"$(APT_DOMAIN)"'
10 MY_DOMAIN := $(APT_DOMAIN)
11 endif
12
13 MKDIRS += $(PO_DOMAINS)/$(MY_DOMAIN)
14 $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: SRC := $(addprefix $(SUBDIR)/,$(SOURCE))
15 $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: makefile
16 (echo $(SRC) | xargs -n1 echo) > $@
17 binary program clean:
18 #$(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
19
20 veryclean: veryclean/$(LOCAL)
21 veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
22 veryclean/po/$(LOCAL):
23 rm -f $(LIST)