aboutsummaryrefslogtreecommitdiff
path: root/profiles/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/build.mk')
-rw-r--r--profiles/build.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/profiles/build.mk b/profiles/build.mk
new file mode 100644
index 0000000..9aff102
--- /dev/null
+++ b/profiles/build.mk
@@ -0,0 +1,21 @@
+
+# Macros #######################################################################
+
+define profile
+unpack: profile-$1
+
+.PHONY: profile-$1
+profile-$1: | $(path)/$1
+
+$(path)/$1: $(path)/$1.tar
+ tar -C $(path) -xvf $$<
+
+clean::
+ $(RM) -r $(path)/$1
+endef
+
+
+# Profile Management ###########################################################
+
+$(eval $(call profile,chrome))
+$(eval $(call profile,firefox))