21 Commits

Author SHA1 Message Date
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
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
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
fde9741594 examples/Makefile: gprclean requires default.cgpr like gprbuild 2022-08-06 17:59:58 +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
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
Olivier Ramonat
c7614a9f03 Complete previous check-in
Part of LB19-013

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@198153 936e1b1b-40f2-da11-902a-00137254ae57
2012-11-19 16:15:09 +00:00
Olivier Ramonat
5e7dc7f8ab Fix gprbuild examples on UNIX
The current working directory is not always in the PATH

Part of LB19-013

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@198141 936e1b1b-40f2-da11-902a-00137254ae57
2012-11-19 14:31:50 +00:00
Vassiliy Fofanov
5bf989ba03 Do not specify the "default" runtime for Ada, since gprconfig might
not output it if it is the same as one of the named runtimes.
Should fix the examples KC16-043


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@185008 936e1b1b-40f2-da11-902a-00137254ae57
2012-01-31 16:51:42 +00:00
Pascal Obry
26e36a4a47 fix some files permissions.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@168576 936e1b1b-40f2-da11-902a-00137254ae57
2010-12-21 20:17:42 +00:00
Pascal Obry
99672ce372 Fix file permissions.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@132388 936e1b1b-40f2-da11-902a-00137254ae57
2008-11-16 15:47:08 +00:00
Cyrille Comar
0b86c455e9 introduce qualifiers in examples and doc
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@123175 936e1b1b-40f2-da11-902a-00137254ae57
2008-03-21 18:45:23 +00:00
Cyrille Comar
502a94d3ff add new example for scenarios
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@123169 936e1b1b-40f2-da11-902a-00137254ae57
2008-03-21 16:51:56 +00:00
Cyrille Comar
5acd669e2e revamp current example
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@118783 936e1b1b-40f2-da11-902a-00137254ae57
2007-10-30 16:01:23 +00:00
Vincent Celier
bc0baf7354 Fix project files for example Main5
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@118701 936e1b1b-40f2-da11-902a-00137254ae57
2007-10-27 17:38:04 +00:00
Cyrille Comar
d02441743c fix typo
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@118698 936e1b1b-40f2-da11-902a-00137254ae57
2007-10-27 10:43:46 +00:00
Cyrille Comar
1bf71d26bc another example of externally built library
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@118692 936e1b1b-40f2-da11-902a-00137254ae57
2007-10-27 10:11:14 +00:00
Cyrille Comar
61e271a5c4 new example
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gprbuild@118673 936e1b1b-40f2-da11-902a-00137254ae57
2007-10-26 17:39:42 +00:00