This is a starter project for learning GNU Build System and its features and constraints.
<https://github.com/Lin-Buo-Ren/Hello-GNU-Build-System>
This intellectual property is licensed under GNU Generic Public License version 3, and other recent versions you like.
- /home/user/projects/my-project/src/Hello World.c
Although the manual doesn't quite clearly point out, GNU Make(and thus, Automake and Autoconf etc.) doesn't really compatible with filenames with space character(s) due to space been specify as the filename separator.
Don't use source filenames with spaces.
-
GNU Automake Manual - FAQ - Limitations on File Names
Portable packages should limit themselves to POSIX file names. These can contain ASCII letters and digits, ‘_’, ‘.’, and ‘-’. File names consist of components separated by ‘/’. File name components cannot begin with ‘-’.
Source and installation file names like main.c are limited even further: they should conform to the POSIX/XOPEN rules described above.
-
GNU Make meets file names with spaces in them | CMCrossroads
-
shell - Can GNU make handle filenames with spaces? - Stack Overflow
While there are workarounds but it is still too fragile to deal with not even thinking about Automake and it's friends.
Although the manual doesn't quite clearly point out, GNU Build System doesn't really compatible with directorynames with space character(s).
- /home/user/projects/my-project/Source Code/main.c
-
Re: should a space really be a "special character" ?
-** The configure command now diagnoses attempts to use a working or source
- directory whose name contains a special character like space, newline, or "".
- Such names are not supported, and can cause "configure" to crash.
Hyphens needs to be escaped as underscores in Makefile.am