Commit Graph

33 Commits

Author SHA1 Message Date
Christophe de Dinechin 13fa0221bb Fetch config sources when installed from the correct directory
When installing in a distribution, we need the config.system-setup.mk to point
to the right directory (e.g. /usr/share/make-it-quick/config) to fetch the
sources while building.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-11-27 00:22:06 +01:00
Christophe de Dinechin b05088a861 install: Move .c files under /usr/share instead of /usr/include
We cannot really put .c files under /usr/include, move them under /usr/share.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-11-26 17:28:45 +01:00
Christophe de Dinechin e690660b74 install: Place the configuration sources in the right directory
Normally, the `config` installables are intended for configuration files.
For `make-it-quick`, we override it for `.c` files that we will place under the
`config/` directory under `make-it-quick`.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-11-26 17:22:02 +01:00
Christophe de Dinechin 425d12acad Release 0.3.1
A minor rename in the variables emitted by the `configure` script

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-11-26 16:24:31 +01:00
Christophe de Dinechin 085a0856ee Refactor installation
- Avoid installing files that are already installed
- Use the .ext conventions for the variables names
- Only create install targets for things to install
- Create a new `INSTALLABLE` variable

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-02-12 12:10:41 +01:00
Christophe de Dinechin 70c9271721 Release 0.2.7
Changes since release 0.2.6
- Add configuration check for long double
- config: Add tests for _Float80 and _Float128
- Add configuration check for _Float16
- Merge pull request #3 from FreedomBen/FreedomBen-typo-fix
- Fix simple typo avaiable -> available
- More renaming using the .ext convention
- Repair installation of DLLs
- Rename MIQ_COMPILE to COMPILE-lt (for libtool)
- Replace [BUILD] with [LINK] in the output
- Make the COMPILE and LINK build steps more generic
- Rename OBJFILES to BUILD
- Replace OBJ_EXT with EXT.obj and similar for other extensions
- Add a test printout for the count-characters test
- Fix name fo test executable in example makefie

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2021-02-09 11:04:58 +01:00
Christophe de Dinechin df4c924ff6 More renaming using the .ext convention
Changed more variables with the convention to use .ext rather than _EXT.
For example, replace PREFIX_DLL with PREFIX.dll.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2020-12-18 20:51:12 +01:00
Christophe de Dinechin 5146122af7 Automatic copyright header adjustment 2019-03-22 16:43:14 +01:00
Christophe de Dinechin c8aa5562e5 Follow GNU guidelines regarding GPLv3
- Rename LICENSE to COPYING
- Add recommended header in each file
2019-03-18 11:10:18 +01:00
Christophe de Dinechin 8031dd771f Add support for DOC_INSTALL
Follow the pattern of %doc on Fedora
2019-03-18 11:10:18 +01:00
Christophe de Dinechin 8a683f1135 A better way to configure the target installation
This addresses two issues:

- There was a mixup between the installed config.system-setup.mk
  and the one being used for installation, which could lead to
  build fragility / difficulty to reproduce.

- Making `make install` and `rpmbuild` consistent in what is
  being installed and produced.
2019-03-18 11:10:18 +01:00
Christophe de Dinechin 42c96f890b Split system-wide setup and local setup
The local setup is used during the build, e.g. includes BUILDROOT.
The system setup is used after installation
2019-03-11 08:43:01 +01:00
Christophe de Dinechin ec4c992ffe Install support files without execute permission
This is mostly to avoid getting warnings from fedpkg
2019-03-09 13:48:45 +01:00
Christophe de Dinechin b0a7d70ad2 Add package information for make-it-quick 2019-03-09 13:48:45 +01:00
Christophe de Dinechin 29a1312825 Split install directories from prefix directories
Earlier, $(PREFIX_LIB) would be the path for libraries,
but also for installation. That led makefiles to adjusting
the prefix in order to install in some subdirectory.

That does not work in a distro setup where PREFIX_BIN
and the like are provided by the build environment,
and represent the base of that build environment.
2019-03-09 13:48:45 +01:00
Christophe de Dinechin f6b87eda37 Implement the uninstall target
This is to improve compatibility with automake
2018-09-20 15:49:06 +02:00
Christophe de Dinechin b49f74f58b Fix the execution of tests 2018-05-17 14:30:36 +02:00
Christophe de Dinechin 2bcd0c9bcf Makefile rules refactoring - MIQ namespace + solidity
A number of changes in this commit:

1. Variable namespace cleanup:
   Rename non-configurable variables as MIQ_XYZ.

2. Internal target namespace cleanup
   Rename intermediate targets to begin with a dot (.)
   For example .build, .prebuild, etc.
   This impacts makefiles that hook for example to prebuild
   (now they need to hook to the .prebuild target)

3. Target, variant and build-environment variables names
   For example, dependencies on $(TARGET) moved from DEFINES_xyz
   to DEFINES_TARGET_xyz instead of DEFINES_xyz, and same thing
   for includes, sources, etc.

4. Protection of special user-level top-level targets
   A target like log-% no longer interferes with a file name such
   as log-file.c

5. Better support for multiple products
   When building foo.exe and bar.lib, there can be different
   sources for each project, i.e. $(SOURCES_foo) and $(SOURCES_bar).
2018-04-10 18:37:27 +02:00
Christophe de Dinechin d2b03b4031 Use a wildcard for the list of configuration files to install 2018-04-04 10:32:09 +02:00
Christophe de Dinechin e0de7fd034 Install configuration sources
The configuration sources are installed in /usr[/local]/lib/make-it-quick
The config.local-setup.mk contains installation-dependent setup.
2018-04-04 10:32:09 +02:00
Christophe de Dinechin 198ad6420d Change project name to 'Make-it-Quick', and make it installable
This simplifies the management of projects using make-it-quick by
putting the makefile include files in a shared location
(typically /usr/local/include/make-it-quick)
2018-04-04 10:32:09 +02:00
Christophe de Dinechin 4d77ac826f Copyright update for 2018 2018-04-04 10:31:11 +02:00
Christophe de Dinechin e19bbc0a79 Reference library directories correctly 2018-04-04 10:21:04 +02:00
Christophe de Dinechin e209890343 Use -Lpath -llib for libraries
Avoid referencing libraries by absolute path, which is not very portable
2018-04-04 10:21:03 +02:00
Christophe de Dinechin 6a9ad13412 Make it simpler to mix static and shared libraries
Also avoid using libtool -shared, not available by default on many platforms
2018-04-04 10:21:03 +02:00
Christophe de Dinechin 5e4fb03b91 Add example with libraries 2018-04-04 10:21:03 +02:00
Christophe de Dinechin 1a1856c3af Remove the need to say 'HAVE_' in 'CONFIG' 2018-04-04 10:20:15 +02:00
Christophe de Dinechin 2b627dd62b Replace .runtest with .test, I get it wrong each time I try to use it manually 2018-04-04 10:20:15 +02:00
Christophe de Dinechin 5ee5fafc3f Some factorization 2018-04-04 10:20:15 +02:00
Christophe de Dinechin 26dedc59e1 Check for library presence 2018-04-04 10:20:15 +02:00
Christophe de Dinechin 0a88f02d71 Add check for functions using a configuration file check 2018-04-04 10:20:15 +02:00
Christophe de Dinechin 6fe7280a78 Add ability to check specific headers like autoconf 2018-04-04 10:19:40 +02:00
Christophe de Dinechin e4aec45c89 Add example 2018-04-04 10:19:39 +02:00