Makefile 311 B

12345678910111213
  1. LFS_EN = /home/xry111/svn-repos/LFS-BOOK
  2. MLANG=zh_CN
  3. XML_FILES = $(shell find $(LFS_EN) -type f -name '*.xml')
  4. PO_FILES = $(patsubst $(LFS_EN)/%.xml, $(MLANG)/%.po, $(XML_FILES))
  5. test:
  6. echo $(PO_FILES)
  7. run: $(PO_FILES)
  8. $(MLANG)/%.po: $(LFS_EN)/%.xml
  9. mkdir -pv "$(@D)"
  10. po4a-updatepo -f docbook -m $< -p $@