forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automake.mk
46 lines (38 loc) · 1.35 KB
/
automake.mk
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
39
40
41
42
43
44
45
46
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
SUBPROJECTS += automake
AUTOMAKE_VERSION := 1.16.2
DEB_AUTOMAKE_V ?= $(AUTOMAKE_VERSION)
automake-setup: setup
wget -q -nc -P $(BUILD_SOURCE) https://ftpmirror.gnu.org/automake/automake-$(AUTOMAKE_VERSION).tar.gz{,.sig}
$(call PGP_VERIFY,automake-$(AUTOMAKE_VERSION).tar.gz)
$(call EXTRACT_TAR,automake-$(AUTOMAKE_VERSION).tar.gz,automake-$(AUTOMAKE_VERSION),automake)
ifneq ($(wildcard $(BUILD_WORK)/automake/.build_complete),)
automake:
@echo "Using previously built automake."
else
automake: automake-setup
cd $(BUILD_WORK)/automake && PERL=/usr/bin/perl ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr
+$(MAKE) -C $(BUILD_WORK)/automake
+$(MAKE) -C $(BUILD_WORK)/automake install \
DESTDIR=$(BUILD_STAGE)/automake
+$(MAKE) -C $(BUILD_WORK)/automake install \
DESTDIR="$(BUILD_BASE)"
touch $(BUILD_WORK)/automake/.build_complete
endif
automake-package: automake-stage
# automake.mk Package Structure
rm -rf $(BUILD_DIST)/automake
mkdir -p $(BUILD_DIST)/automake
# automake.mk Prep automake
cp -a $(BUILD_STAGE)/automake/usr $(BUILD_DIST)/automake
# automake.mk Sign
$(call SIGN,automake,general.xml)
# automake.mk Make .debs
$(call PACK,automake,DEB_AUTOMAKE_V)
# automake.mk Build cleanup
rm -rf $(BUILD_DIST)/automake
.PHONY: automake automake-package