Skip to content

Commit

Permalink
Automatic maintainer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Nov 1, 2021
1 parent 970026c commit 4a63473
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build
run: |
./autogen.sh
QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode --enable-debug
./configure --enable-silent-rules --enable-debug
make -j 8
- name: Run test
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
# - name: Run test
# run: |
# ./autogen.sh
# QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode --enable-debug
# ./configure --enable-silent-rules --enable-debug
# make -j 8
# make -j check
# make distcheck
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ in org-mode files and produce the source code and the documentation from these f

```
./autogen.sh
./configure --prefix=$PWD/_install --enable-silent-rules --enable-maintainer-mode
./configure --prefix=$PWD/_install
make
make check
Expand All @@ -54,7 +54,7 @@ by the preprocessor otherwise). To enable vfc_ci support, the library should be
configured with the following command :

```
./configure --prefix=$PWD/_install \ --enable-silent-rules --enable-maintainer-mode --enable-vfc_ci --host=x86_64 \ CC="verificarlo-f" FC="verificarlo-f"
./configure --prefix=$PWD/_install \ --enable-vfc_ci --host=x86_64 \ CC="verificarlo-f" FC="verificarlo-f"
```

where CC and FC are set to verificarlo-f, and support is explicitely enabled
Expand Down
3 changes: 0 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@

python ./tools/build_makefile.py
autoreconf -i
echo "To configure in maintainer mode, use:
$ QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode
"
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ AC_INIT([qmckl],[0.1.1],
[https://trex-coe.github.io/qmckl/index.html])
AC_CONFIG_AUX_DIR(tools)
AM_INIT_AUTOMAKE([subdir-objects color-tests parallel-tests silent-rules 1.11])

# Activate developer mode when the source is the git repository.
# Otherwise, it is the source distribution and the developer mode should not be activated.
TEST_IFEXISTS=".git"
AC_CHECK_FILE([$TEST_IFEXISTS],
[enable_maintainer_mode="yes"],
)

AM_MAINTAINER_MODE()
LT_INIT
AC_CONFIG_SRCDIR([configure.ac])
Expand Down

0 comments on commit 4a63473

Please sign in to comment.