aboutsummaryrefslogtreecommitdiff
path: root/profiles/build.mk
blob: 72cd371a72d0404a1d8482fdeb445849e4e01c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


# Macros #######################################################################

define profile
$(topdir)/profiles/$1: $(topdir)/profiles/$1/.token ;

$(topdir)/profiles/$1/.token: $(path)/$1.tar
	$$(call label,PROFILE    $1)\
	  tar -C $(path) $(if $(Q),,-v) -xf $$< \
	  && touch $$@

clean::
	$(RM) -r $(path)/$1
endef


# Profile Management ###########################################################

$(eval $(call profile,chrome))
$(eval $(call profile,firefox))