mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 15:40:10 +01:00
Rather than generating enum classes by hand (and complaining in each file that "this should really be standard"), use glib-mkenums. Unfortunately, we need a very new version of glib-mkenums in order to deal with NM's naming conventions and to fix a few other bugs, so just import that into the source tree temporarily. Also, to simplify the use of glib-mkenums, import Makefile.glib from https://bugzilla.gnome.org/654395. To avoid having to run glib-mkenums for every subdirectory of src/, add a new "generated" directory, and put the generated enums files there. Finally, use Makefile.glib for marshallers too, and generate separate ones for libnm-glib and NetworkManager.
47 lines
880 B
Makefile
47 lines
880 B
Makefile
include $(GLIB_MAKEFILE)
|
|
|
|
SUBDIRS = \
|
|
include \
|
|
libnm-util \
|
|
libnm-glib \
|
|
introspection \
|
|
src \
|
|
callouts \
|
|
cli \
|
|
tools \
|
|
policy \
|
|
data \
|
|
initscript \
|
|
test \
|
|
po \
|
|
man \
|
|
docs \
|
|
examples
|
|
|
|
EXTRA_DIST = \
|
|
CONTRIBUTING \
|
|
NetworkManager.pc.in \
|
|
intltool-extract.in \
|
|
intltool-merge.in \
|
|
intltool-update.in \
|
|
Makefile.glib
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
--with-tests=yes \
|
|
--with-docs=yes \
|
|
--enable-more-warnings=yes \
|
|
--with-udev-dir=$$dc_install_base/lib/udev \
|
|
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
|
|
|
|
DISTCLEANFILES = intltool-extract intltool-merge intltool-update
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = NetworkManager.pc
|
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
CLEANFILES = cscope.in.out cscope.out cscope.po.out
|
|
|
|
.PHONY: cscope
|
|
cscope:
|
|
cscope -b -q -R -Iinclude -ssrc -slibnm-glib -slibnm-util -scli/src;
|