-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathautomake.yaml
130 lines (114 loc) · 2.79 KB
/
automake.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package:
name: automake
version: "1.17"
epoch: 0
description: "GNU tool for generating makefiles"
copyright:
- license: GPL-3.0-or-later
environment:
contents:
packages:
- autoconf
- build-base
- busybox
- ca-certificates-bundle
pipeline:
- uses: fetch
with:
uri: https://ftp.gnu.org/gnu/automake/automake-${{package.version}}.tar.xz
expected-sha256: 8920c1fc411e13b90bf704ef9db6f29d540e76d232cb3b2c9f4dc4cc599bd990
- runs: |
M4=/usr/bin/m4 ./configure \
--prefix=/usr
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: "automake-doc"
description: "automake documentation"
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
update:
enabled: true
release-monitor:
identifier: 144
test:
environment:
contents:
packages:
- autoconf
- bash
- build-base
- coreutils
- gcc
- make
- perl
pipeline:
# AUTOGENERATED
- runs: |
aclocal --version
aclocal-1.17 --version
automake --version
automake-1.17 --version
aclocal --help
aclocal-1.17 --help
automake --help
automake-1.17 --help
- name: "Verify automake version"
runs: |
automake --version | grep -q "1.17"
- name: "Test basic project initialization"
runs: |
mkdir test-project
cd test-project
# Create standard GNU files
touch AUTHORS ChangeLog NEWS README
touch configure.ac
cat > configure.ac << 'EOF'
AC_INIT([test], [1.0])
AM_INIT_AUTOMAKE([foreign]) # Add foreign option to avoid GNU standards warnings
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
touch Makefile.am
cat > Makefile.am << 'EOF'
bin_PROGRAMS = hello
hello_SOURCES = hello.c
EOF
touch hello.c
cat > hello.c << 'EOF'
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
EOF
aclocal
automake --add-missing
autoconf
ls Makefile.in
- name: "Test automake with foreign option"
runs: |
mkdir foreign-project
cd foreign-project
cat > configure.ac << 'EOF'
AC_INIT([test], [1.0])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
cat > Makefile.am << 'EOF'
bin_PROGRAMS = test
test_SOURCES = main.c
EOF
touch main.c
# Generate aclocal.m4 first
aclocal
# Then run automake
automake --add-missing --foreign
test -f Makefile.in