-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 870 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CURRENT_DIR = $(shell pwd)
TARBALL_NAME = binutils-$(VERSION).tar.xz
SOURCE_URL = https://mirrors.kernel.org/gnu/binutils/$(TARBALL_NAME)
SOURCE_DIR = $(CURRENT_DIR)/src
$(TARBALL_NAME):
wget -q -N $(SOURCE_URL)
$(SOURCE_DIR): $(TARBALL_NAME)
mkdir -p $(SOURCE_DIR)
tar --strip-components=1 -xf $(TARBALL_NAME) -C $(SOURCE_DIR)
requires:
cd debian; \
ln -fs control.$(VERSION) control; \
ln -fs changelog.$(VERSION) changelog; \
clean:
rm debian/control
rm debian/changelog
rm -fr $(SOURCE_DIR)
deb: requires $(SOURCE_DIR)
SOURCE_DIR=$(SOURCE_DIR) dpkg-buildpackage \
-B \
--no-sign \
-jauto \
--compression=xz \
--compression-level=9 \
--buildinfo-option="-u$(CURRENT_DIR)" \
--changes-option="-u$(CURRENT_DIR)"
artifacts:
mkdir -p artifacts
mv *.deb artifacts
PHONY: requires clean deb