summaryrefslogtreecommitdiff
path: root/payloads/external/tint/Makefile
blob: e57132c8e3bc9361a06abd85625ddd47c2aa400f (plain)
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
project_url=https://mirror.fsf.org/trisquel/pool/main/t/tint/tint_0.05.tar.xz
archive_name=tint_0.05.tar.xz

unexport KCONFIG_AUTOHEADER
unexport KCONFIG_AUTOCONFIG
unexport KCONFIG_DEPENDENCIES
unexport KCONFIG_SPLITCONFIG
unexport KCONFIG_TRISTATE
unexport KCONFIG_NEGATIVES

all: tint

tint: patch
	echo "    MAKE       TINT     "
	$(MAKE) -C tint

patch: download
	cd tint; \
	if [ -e debian ]; then \
		rm -rf debian typedefs.h Makefile; \
		touch Makefile; \
		patch -l -p1 < ../libpayload_tint.patch; \
	fi

download:
	test -d tint || { wget $(project_url); \
		tar -xvf $(archive_name); \
		rm $(archive_name); \
		mv tint-0.05 tint; }

clean:
	test -d tint && $(MAKE) -C tint clean || exit 0

distclean:
	rm -rf tint

.PHONY: download patch tint clean distclean