Commit fe9ee7cd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: make package to make a binary tarball

parent 3aa1cecf
...@@ -8,6 +8,7 @@ all: install ...@@ -8,6 +8,7 @@ all: install
ALL_PKGS := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak)) ALL_PKGS := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak))
SRC := ../src SRC := ../src
TARBALLS := ../tarballs TARBALLS := ../tarballs
DATE := $(shell date +%Y%m%d)
# Common download locations # Common download locations
GNU := http://ftp.gnu.org/gnu GNU := http://ftp.gnu.org/gnu
...@@ -21,7 +22,8 @@ include config.mak ...@@ -21,7 +22,8 @@ include config.mak
# #
# Machine-dependent variables # Machine-dependent variables
# #
PREFIX := $(abspath $(BIN)/$(HOST)) PREFIX ?= ../hosts/$(HOST)
PREFIX := $(abspath $(PREFIX))
ifneq ($(HOST),$(BUILD)) ifneq ($(HOST),$(BUILD))
HAVE_CROSS_COMPILE = 1 HAVE_CROSS_COMPILE = 1
endif endif
...@@ -161,4 +163,8 @@ distclean: clean ...@@ -161,4 +163,8 @@ distclean: clean
$(RM) config.mak $(RM) config.mak
unlink Makefile unlink Makefile
package: install
(cd $(PREFIX)/.. && \
tar cvJ $(notdir $(PREFIX))/) > ../vlc-contrib-$(HOST)-$(DATE).tar.xz
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment