mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
![Thomas Haller](/assets/img/avatar_default.png)
Currently "src/" mostly contains the source code of the daemon. I say mostly, because that is not true, there are also the device, settings, wwan, ppp plugins, the initrd generator, the pppd and dhcp helper, and probably more. Also we have source code under libnm-core/, libnm/, clients/, and shared/ directories. That is all confusing. We should have one "src" directory, that contains subdirectories. Those subdirectories should contain individual parts (libraries or applications), that possibly have dependencies on other subdirectories. There should be a flat hierarchy of directories under src/, which contains individual modules. As the name "src/" is already taken, that prevents any sensible restructuring of the code. As a first step, move "src/" to "src/core/". This gives space to reorganize the code better by moving individual components into "src/". For inspiration, look at systemd's "src/" directory. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/743
33 lines
711 B
Bash
Executable file
33 lines
711 B
Bash
Executable file
#!/bin/sh
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
set -e
|
|
|
|
srcdir=`dirname $0`
|
|
if test -z "$srcdir"; then
|
|
srcdir=.
|
|
fi
|
|
|
|
olddir=`pwd`
|
|
|
|
REQUIRED_AUTOMAKE_VERSION=1.9
|
|
PKG_NAME=NetworkManager
|
|
|
|
(test -f $srcdir/configure.ac \
|
|
&& test -f $srcdir/src/core/main.c) || {
|
|
printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2
|
|
echo " top-level $PKG_NAME directory" >&2
|
|
exit 1
|
|
}
|
|
|
|
cd $srcdir
|
|
|
|
gtkdocize
|
|
autopoint --force
|
|
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
|
|
|
|
cd $olddir
|
|
if test -z "$NOCONFIGURE"; then
|
|
exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error --enable-gtk-doc --enable-introspection "$@"
|
|
fi
|