32 lines
779 B
Makefile
32 lines
779 B
Makefile
|
.ONESHELL:
|
||
|
SHELL = /bin/bash
|
||
|
.SHELLFLAGS += -e
|
||
|
|
||
|
MAIN_TARGET = libteam5_$(LIBTEAM_VERSION)_amd64.deb
|
||
|
DERIVED_TARGETS = libteam-dev_$(LIBTEAM_VERSION)_amd64.deb \
|
||
|
libteamdctl0_$(LIBTEAM_VERSION)_amd64.deb \
|
||
|
libteam-utils_$(LIBTEAM_VERSION)_amd64.deb
|
||
|
|
||
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||
|
# Obtain libteam
|
||
|
rm -rf ./libteam
|
||
|
git clone https://github.com/jpirko/libteam.git
|
||
|
pushd ./libteam
|
||
|
git checkout -f v1.26
|
||
|
popd
|
||
|
|
||
|
git clone https://anonscm.debian.org/git/collab-maint/libteam.git tmp
|
||
|
pushd ./tmp
|
||
|
git checkout -f da006f2 # v1.26
|
||
|
popd
|
||
|
|
||
|
mv tmp/debian libteam/
|
||
|
rm -rf tmp
|
||
|
pushd ./libteam
|
||
|
dpkg-buildpackage -rfakeroot -b -us -uc
|
||
|
popd
|
||
|
|
||
|
mv $(DERIVED_TARGETS) $* $(DEST)/
|
||
|
|
||
|
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
|