From b57f6ebfb395ce896318c7808ddf3a8b2a632ae1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 13 Jun 2014 02:54:14 -0400 Subject: build: Add "source" target. --- diff --git a/build b/build index 82e07d8..3cf9807 100755 --- a/build +++ b/build @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include ../source.mk + nop: @: diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..23c006a --- /dev/null +++ b/source.mk @@ -0,0 +1,10 @@ +upstream_base_url = ftp://ftp.alsa-project.org/pub/lib +upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.bz2 +upstream_url = $(upstream_base_url)/$(upstream_archive) +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 + +$(source_archive): + wget -c '$(upstream_url)' + mv '$(upstream_archive)' '$(source_archive)' + +source: $(source_archive) -- cgit v0.9.1