podomain.mak 782 B

1234567891011121314151617181920212223
  1. # -*- make -*-
  2. # This creates the file listing used by xgettext and friends based on the
  3. # declared domain of the make file. It also arranges to set the DOMAIN
  4. # CPPFLAG for the compilation.
  5. MY_DOMAIN := $(PACKAGE)
  6. ifdef APT_DOMAIN
  7. $($(LOCAL)-OBJS): CPPFLAGS := $(CPPFLAGS) -DAPT_DOMAIN='"$(APT_DOMAIN)"'
  8. MY_DOMAIN := $(APT_DOMAIN)
  9. endif
  10. MKDIRS += $(PO_DOMAINS)/$(MY_DOMAIN)
  11. $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: SRC := $(addprefix $(SUBDIR)/,$(SOURCE))
  12. $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list: makefile
  13. (echo $(SRC) | xargs -n1 echo) > $@
  14. binary program clean: $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
  15. veryclean: veryclean/$(LOCAL)
  16. veryclean/po/$(LOCAL): LIST := $(PO_DOMAINS)/$(MY_DOMAIN)/$(LOCAL).$(TYPE)list
  17. veryclean/po/$(LOCAL):
  18. rm -f $(LIST)