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
ALL_PKGS := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak))
SRC := ../src
TARBALLS := ../tarballs
DATE := $(shell date +%Y%m%d)
# Common download locations
GNU := http://ftp.gnu.org/gnu
......@@ -21,7 +22,8 @@ include config.mak
#
# Machine-dependent variables
#
PREFIX := $(abspath $(BIN)/$(HOST))
PREFIX ?= ../hosts/$(HOST)
PREFIX := $(abspath $(PREFIX))
ifneq ($(HOST),$(BUILD))
HAVE_CROSS_COMPILE = 1
endif
......@@ -161,4 +163,8 @@ distclean: clean
$(RM) config.mak
unlink Makefile
package: install
(cd $(PREFIX)/.. && \
tar cvJ $(notdir $(PREFIX))/) > ../vlc-contrib-$(HOST)-$(DATE).tar.xz
.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