blob: b13479deee923781df034cd389d531e03c1df563 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#!@make@ -f
# opkhelper
# mkarchtab.in
# Input makefile to generate an architecture table for testing.
#
# Copyright (C) 2012 Patrick "P. J." McDermott
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package_name = @package_name@
package_version= @package_version@
srcdir = @srcdir@
prefix = @prefix@
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
mandir = @mandir@
libopkhelper = @libopkhelper@
libopkbuild_1 = @libopkbuild_1@
DESTDIR = /
archtab = @archtab@
# New and improved kludge to generate an architecture table for testing.
# Now 10% less horrible!
default:
@printf 'Generating build system architecture data...\n'
@mkdir -p '${archtab}' || \
{ printf 'Error: Cannot make architecture table directory\n'; exit 1;}
@# core-linux-eglibc
@mkdir -p '${archtab}/core-linux-eglibc' || \
{ printf 'Error: Cannot make architecture table directory\n'; exit 1;}
@printf 'x86_64-unknown-linux-gnu\n' \
>'${archtab}/core-linux-eglibc/autoconf' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@printf 'x86_64\nx86\n' \
>'${archtab}/core-linux-eglibc/kbuild' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@# i686-linux-eglibc
@mkdir -p '${archtab}/i686-linux-eglibc' || \
{ printf 'Error: Cannot make architecture table directory\n'; exit 1;}
@printf 'i686-unknown-linux-gnu\n' \
>'${archtab}/i686-linux-eglibc/autoconf' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@printf 'i386\nx86\n' \
>'${archtab}/i686-linux-eglibc/kbuild' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@# i686-kfreebsd-eglibc
@mkdir -p '${archtab}/i686-kfreebsd-eglibc' || \
{ printf 'Error: Cannot make architecture table directory\n'; exit 1;}
@printf 'i686-unknown-freebsd9.0\n' \
>'${archtab}/i686-kfreebsd-eglibc/autoconf' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@printf 'i386\nx86\n' \
>'${archtab}/i686-kfreebsd-eglibc/kbuild' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@# cortexa8-linux-eglibc
@mkdir -p '${archtab}/cortexa8-linux-eglibc' || \
{ printf 'Error: Cannot make architecture table directory\n'; exit 1;}
@printf 'arm-cortex_a8-linux-gnueabi\n' \
>'${archtab}/cortexa8-linux-eglibc/autoconf' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@printf 'arm\n' \
>'${archtab}/cortexa8-linux-eglibc/kbuild' || \
{ printf 'Error: Cannot write architecture data\n'; exit 1;}
@printf 'Done!\n'
|