diff options
Diffstat (limited to 'build.mk')
| -rw-r--r-- | build.mk | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -10,6 +10,7 @@ arc ?= $(notdir $(url)) configure_cmd ?= ./configure build_cmd ?= make +inflate_cmd ?= gunzip install_cmd ?= sudo make install uninstall_cmd ?= sudo make uninstall @@ -19,7 +20,7 @@ ifdef git_url dir ?= $(notdir $(git_url)) else fetch_cmd = curl -L $(url) -o $(arc) - extract_cmd = gunzip < $(arc) | tar xf - + extract_cmd = $(inflate_cmd) < $(arc) | tar xf - dir ?= $(basename $(basename $(arc))) endif @@ -37,6 +38,7 @@ uninstall: .install install: .install build: .build configure: .configure +patch: .patch extract: .extract fetch: .fetch @@ -48,10 +50,14 @@ fetch: .fetch cd $(dir) && $(build_cmd) @touch $@ -.configure: .extract +.configure: .patch cd $(dir) && $(configure_cmd) $(configure_flags) @touch $@ +.patch: .extract + cd $(dir) && for f in ../*.patch; do patch -p1 < $$f || break; done + @touch $@ + .extract: .fetch $(extract_cmd) @touch $@ |
