diff options
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/Makefile | 35 | ||||
-rw-r--r-- | profiles/build.mk | 21 |
2 files changed, 21 insertions, 35 deletions
diff --git a/profiles/Makefile b/profiles/Makefile deleted file mode 100644 index 7da5900..0000000 --- a/profiles/Makefile +++ /dev/null @@ -1,35 +0,0 @@ - -# Entry Point ################################################################## - -.PHONY: all -all: unpack - -.PHONY: all -unpack: - -.PHONY: clean -clean: - - -# Macros ####################################################################### - -define profile -.PHONY: $1 -$1: $1/.token - -$1/.token: $1.tar - tar -xvf $$< - touch $$@ - -unpack: $1 - -clean-$1: - $(RM) -r $1 -clean: clean-$1 -endef - - -# Profile Management ########################################################### - -$(eval $(call profile,chrome)) -$(eval $(call profile,firefox)) 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)) |