41 Commits

Author SHA1 Message Date
Nicolas Boulenguez
25600472c8 Let makefile.setup override default values for some variables
Symptom:
```
make setup PRJ_BUILD=Debug
make
```
answers `gprbuild -p "-XPRJ_BUILD=Release" ...`.
2023-12-06 10:52:08 +01:00
Ronan Desplanques
6c8a6d699c Improve makefile behavior with ENABLE_SHARED=false
Before this commit, running
`make ENABLE_STATIC=true ENABLE_SHARED=false` would not build a
static version of the library, which was unexpected. Now the same
command generates a static version of the library.
2023-12-04 11:43:55 +01:00
Blady
548e00e2a2 Select the shared library extension following the actual target. 2022-12-14 09:35:09 +01:00
Nicolas Boulenguez
602330f693 Optionally let Make display executed commands
Debian automatically rebuilds packages on hardware the developper
does not possess.  When investigating a failure, a verbose log may
save a lot of work: distant connexion, cloning a chroot, installing
build dependencies.
2022-11-23 12:20:43 +01:00
Nicolas Boulenguez
7b68b41ba9 Let projects depend on specific xmlada_* instead of legacy xmlada.
The xmlada project gathers all xmlada_* library projects.  Building
templates_parser with more specific dependencies avoids an unneeded
dependency on xmlada_schema.
2022-06-01 19:43:50 +02:00
Liaiss Merzougue
ff1c0aa896 Fix the wrong version in documentation. U621-025 2022-06-01 18:01:39 +02:00
Pascal Obry
0700188009 Makefile: Fix dependencies to avoid parallel build issues.
Tentative fix for V314-053.
2022-03-17 08:28:19 +01:00
Matthieu Eyraud
8bad1c0b9b Add static-pic build
no-tn-check
2022-03-09 11:29:13 +01:00
Pascal Obry
2ed90c02de Always for uninstallation of the project. 2020-10-30 18:35:33 +01:00
Patschkowski
4bf1340fc9 Do not generate src/templates_parser-version.adb (#35)
Do not generate src/templates_parser-version.adb. 

Instead pass the version information via the Binder's environment to the source code. 
This way no code needs to be generated which makes the build process independent 
from make.
2020-06-12 07:57:21 +02:00
Pascal Obry
be979abaf8 Makefile: Fix style of generated templates_parser-version.adb. 2020-03-11 09:59:39 +01:00
Pascal Obry
54fda267df Makefile: Fix creation of templates_parser-version.adb on Windows.
On some Windows machines the bash build-in printf does not work
properly.

Fixes T309-046.
2020-03-10 19:52:39 +01:00
Pascal Obry
897e51909d Make sure setup creates the version file. 2020-03-06 21:28:09 +01:00
Nicolas Boulenguez
29f5f4fbf6 Set version in Ada package from the Makefile variable.
This will simplify updates.
2020-03-06 18:21:52 +01:00
Nicolas Boulenguez
8ad8a2fd40 Clean forgotten files config/setup/foo.ads.std*. 2019-08-28 19:15:11 +02:00
Nicolas Boulenguez
9888baaa74 No need for default TP_XMLADA, the variable is set in both branches of previous test. 2019-08-28 19:15:11 +02:00
Nicolas Boulenguez
8fc4ae7c03 Run each Make subshell only once 2019-08-28 19:15:11 +02:00
Nicolas Boulenguez
62302fd5f2 Format Make conditionals. 2019-08-28 19:15:11 +02:00
Nicolas Boulenguez
acf4492a79 Remove unused IS_CROSS variable from Makefile. 2019-08-28 19:15:11 +02:00
Nicolas Boulenguez
bd2bef3c9e Remove unused EXEEXT variable from Makefile. 2019-08-28 19:15:11 +02:00
Pascal Obry
66fecb811d Merge branch 'xnadalib-2018'
* xnadalib-2018:
  Avoid external value of GPROPTS to override internal makefile value,
  for instance: make GPROPTS="-gnatwn"

  Avoid "gnat1: invalid switch: -gnat05" error and "docs.gpr:22:09: warning:
  there are no sources of language "Project file" in this project" warning.
2018-12-16 14:53:13 +01:00
Pascal Obry
dfe9f3d003 Bump version for new development cycle.
For RA05-011.
2018-10-09 18:46:56 +02:00
Blady
40622069b3 Avoid external value of GPROPTS to override internal makefile value, for instance:
make GPROPTS="-gnatwn"
2018-09-15 18:33:57 +02:00
Pascal Obry
67bc4a9f25 Update to use two --build-var options.
Continued work for Q710-013.
2017-11-16 17:52:25 +01:00
Pascal Obry
709d71b7ba Use two build variables for the installation.
One specific to the project, one generic shared with other projects.

Part of Q710-013.
2017-11-07 18:21:24 +01:00