include $(dir $(lastword $(MAKEFILE_LIST)))/config.mk include $(topsrcdir)/build-aux/Makefile.head.mk # these are the resulting packages packages=libretools librelib gitget xbs # and which directories they contain libretools=\ src \ src/abslibre-tools \ src/chroot-tools \ src/devtools \ src/librefetch \ src/toru librelib=src/lib gitget=src/gitget xbs=\ src/xbs \ src/xbs-abs \ src/xbs-abslibre verbs=build install uninstall mostlyclean clean distclean maintainer-clean check $(foreach verb,$(verbs),$(foreach package,$(packages),$(eval $(verb)-$(package): $(addsuffix /$(verb),$($(package)))))) $(foreach verb,$(verbs),$(foreach package,$(packages),$(eval .PHONY: $(verb)-$(package)))) $(outdir)/check:: cd $(@D)/test && ./testenv $(TESTENVFLAGS) roundup _po_rule = \ po/%(package).pot: $(addsuffix /everything.pot,$(%(package))); \ cat $^ | msguniq -Fi --to-code=UTF-8 > '$@' || rm -f '$@' $(foreach package,$(packages),$(eval $(subst %(package),$(package),$(value _po_rule)))) pots = std.out_files += $(foreach package,$(packages),po/$(package).pot) std.clean_files += .var.* std.gen_files += .srcversion-libretools.mk .srcversion-devtools.mk at.subdirs = src $(foreach package,$(packages),$($(package))) detect-ignore-md += HACKING/% detect-ignore-exec += build-aux/% include $(topsrcdir)/build-aux/Makefile.tail.mk