Jerome Lambourg
304d88dc0d
Update copyright notice
...
Fix eng/gpr/gpr#14
2023-01-02 12:38:01 +01:00
Vasiliy Fofanov
6bfbcf421b
examples: improve Makefiles, mostly style issues
...
This comes from GitHub PR #115
no-tn-check
Change-Id: Ib11da9355a3e7a59d0d1f81ddfb9c1311fd9fc38
2022-08-08 13:49:16 +02:00
Nicolas Boulenguez
5ee0edb066
examples/Makefile: show all PATH manipulations explicitly
...
Each change is local to a subshell, visible in log.
When the path is prefixed, make that clear by hiding the previous
value in the log.
2022-08-06 18:13:41 +02:00
Nicolas Boulenguez
5fabc04d92
example/Makefile: improve user interaction
...
Show a separate log line before each Make recursion.
Show a summary of options on unknown targets.
Allow to run a selection of examples.
2022-08-06 18:10:40 +02:00
Nicolas Boulenguez
4900beceef
examples/extended_projects/Makefile: improve dry run and cleaning
...
If `make` is run with `-n`, pass it to `../subsystems`.
For `make clean`, also remove the configuration project.
2022-08-06 18:03:03 +02:00
Nicolas Boulenguez
342452cbd9
examples/Makefile: remove unneeded parenthesis
...
Make runs a subshell for each recipe line, there is no need to ask one
more subprocess to the shell.
2022-08-06 18:01:37 +02:00
Nicolas Boulenguez
9abb92c096
eamples/ada_cpp/Makefile: remove unneeded options for gprbuild and gprclean
...
Gprbuild does not need -p because the object directory is ./.
Gprclean does not need -r because there is no project inclusion.
2022-08-06 18:01:37 +02:00
Nicolas Boulenguez
56f8a9a4c1
examples/Makefile: remove unused -q option for gprclean
...
This also improve consistency with other examples.
2022-08-06 18:01:17 +02:00
Nicolas Boulenguez
73318bd186
examples: remove an apparently obsolete and unused Makefile
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
ccf0fe83ef
examples/Makefile: remove redundant -o $@ option for gprconfig
...
Newcomers may not be interested in Make's $@ when learning gprbuild.
This commit hides default.cgpr as much as possible, but another
consistent option is to make the information flow explicit.
`gprconfig -o default.cgpr`
`gprbuild`--config=default.cgpr`
`gprclean --config=default.cgpr`
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
4b01ddcb7f
examples/Makefile: allow the user to pass GPRBUILDFLAGS
...
For example, GPRBUILDFLAGS=-v is useful to understand what happens
when discovering gprbuild, or for full logs when examples are used as
basic tests.
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
ca20a85c82
examples/Makefile: explicitly write project names in gprbuild command line
...
Replace `gprbuild`, `gprbuild -Pfoo`, `gprbuild -Pfoo.gpr` and
`gprbuild foo` with the equivalent `gprbuild foo.gpr`.
Examples are intended for beginners, so an explicit file name is
preferable.
2022-08-06 18:01:01 +02:00
Nicolas Boulenguez
fde9741594
examples/Makefile: gprclean requires default.cgpr like gprbuild
2022-08-06 17:59:58 +02:00
Nicolas Boulenguez
a880f063f4
examples/first_steps/Makefile: stop generating default.cgpr on each make run
2022-08-06 17:18:56 +02:00
Nicolas Boulenguez
34963edb79
examples/Makefile: declare targets as .PHONY instead of depending on force
...
This is recommended by the GNU Make manual as more efficient and
explicit than the traditional force fake target.
2022-08-06 17:13:45 +02:00
Nicolas Boulenguez
ee2661e473
Remove .cvsignore files, hence examples object directories
...
The other examples show that there is no need to store object
directories in git.
2022-08-06 16:59:33 +02:00
Dmitriy Anisimkov
173cfc00bd
Make the examples usable as minimal tests
...
And fix warnings that would be printed on standard error.
This comes from the GitHub pull request #80
TN: UA25-045
Change-Id: Ib38a0d7c266c7a401cd4dc8b4597cb014501d61d
2021-10-28 22:18:10 +06:00
Nicolas Boulenguez
ec650dca63
Break a line over 80 characters
...
This follows up 303def05 .
2021-10-25 18:55:51 +02:00
Nicolas Boulenguez
f8b376a419
Update GPL version in Fortran examples
2020-10-10 14:27:23 +02:00
Nicolas Boulenguez
303def05f3
Make the examples usable as minimal tests
...
Display the executed commands.
Fix warnings that would be printed on standard error.
2020-10-10 14:21:30 +02:00
Vincent Celier
3d79fe3d1f
Invoke gprbuild -p: create object dirs (P701-009)
2016-07-01 21:29:06 -07:00
Nicolas Roche
f9c76646dc
Remove empty directories and adjust example makefile
...
Part of P701-009
Change-Id: I5b54b4c81b5fa6e316ef8b0bc482fabfccebfb35
2016-07-01 11:21:32 +02:00
Vasiliy Fofanov
9e7293ac31
Automatically create missing object dirs (P503-035)
2016-05-18 10:37:55 -04:00
Olivier Ramonat
b349fb270e
Compile Ada with ZCX to interface with Fortran
...
With sjlj and recent compilers we have undefined references to
`_Unwind_SjLj_Register'. Compiling with ZCX and using a GFortran
compiler more recent than 4.5 20120628 is known to work.
Change-Id: Icacd866c47bd635a7d25cabe7d5fd3476de1a4fa
TN: OB09-019
2016-04-12 11:58:04 +02:00
Joel Brobecker
9b98da02d7
examples: Use gprbuild -p when necessary
...
After the transition to git, we lost all empty directories, and
in particular the object or library directories, causing numerous
failures while trying to run these examples as part of the gprbuild
testsuite. This patch should fix the problem by using the -p switch
in gprbuild, causing the missing directories to be created.
Part of P129-026.
2016-02-15 05:32:32 +01:00