sugar.mk 467 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# this makefile contains some syntactic sugar for the toplevel one

# strip prefix
config/with/%: %; @:

# just map to specific features
config/like/%: use/build-%; @:

# map and preconfigure
config/pack/%: use/pack/%
	@$(call set,IMAGE_TYPE,$*)

# just preconfigure
config/name/%:
	@$(call set,IMAGE_NAME,$*)
16

17 18 19 20
# request particular image subprofile inclusion
sub/%:
	@$(call add,SUBPROFILES,$(@:sub/%=%))

21
# the final thing will pull the rest in
22
build: postclean; @: