Makefile
changeset 431 4ec7d0ea1602
parent 429 e721e428b909
child 439 20e2e561fb14
equal deleted inserted replaced
430:d4752b12b8d6 431:4ec7d0ea1602
   309 # Build targets.
   309 # Build targets.
   310 
   310 
   311 .PHONY: all
   311 .PHONY: all
   312 all: dict
   312 all: dict
   313 
   313 
   314 .PHONY: dict
   314 .PHONY: dict dictd c5
       
   315 dictd c5: dict
   315 dict: $(DICTDZ_FILES) $(INDEX_FILES)
   316 dict: $(DICTDZ_FILES) $(INDEX_FILES)
   316 
   317 
   317 #  --case-sensitive
   318 #  --case-sensitive
   318 dist/dictd/%.dict dist/dictd/%.index: dist/dictd/%.c5 dist/dictd/%.c5.name dist/dictd/%.c5.url $(MAKEFILE_LIST)
   319 dist/dictd/%.dict dist/dictd/%.index: dist/dictd/%.c5 dist/dictd/%.c5.name dist/dictd/%.c5.url $(MAKEFILE_LIST)
   319 	(cd dist/dictd; dictfmt  -c5 --headword-separator '; ' --break-headwords --utf8 --allchars -s "`cat $*.c5.name`" -u "`cat $*.c5.url`"  $*)  < $<
   320 	(cd dist/dictd; dictfmt  -c5 --headword-separator '; ' --break-headwords --utf8 --allchars -s "`cat $*.c5.name`" -u "`cat $*.c5.url`"  $*)  < $<
   320 
   321 
   321 dist/dictd/%.dict.dz: dist/dictd/%.dict
   322 dist/dictd/%.dict.dz: dist/dictd/%.dict
   322 	dictzip -c $< >$@
   323 	dictzip -c $< >$@
   323 
   324 
       
   325 GADICT_SUFFIXES := en-ru+uk en-ru en-uk voa
       
   326 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.name,$(GADICT_SUFFIXES))
       
   327 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.url,$(GADICT_SUFFIXES))
   324 
   328 
   325 dist/dictd/%.c5.name dist/dictd/%.c5.url: dist/dictd/%.c5
   329 dist/dictd/%.c5.name dist/dictd/%.c5.url: dist/dictd/%.c5
   326 	:
   330 	:
   327 
   331 
   328 # -B  suppress __pycache__ dir
   332 # -B  suppress __pycache__ dir