1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
include $(dir $(lastword $(MAKEFILE_LIST)))/config.mk
include $(topsrcdir)/automake.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 =
am_out_files += $(foreach package,$(packages),po/$(package).pot)
am_clean_files += .var.*
am_gen_files += .srcversion-libretools.mk .srcversion-devtools.mk
am_subdirs = src
include $(topsrcdir)/automake.tail.mk
|