-if WITH_DOCS
-
-all:
-
-XSLTPROC = xsltproc --xinclude --nonet
-
-XMLS = $(wildcard introspection/nm-*.xml)
-# Figure out if we need ASYNC_INTROSPECT and add it later
-
-GENERATED_FILES = \
- docs/spec.html
-
-docs/spec.html: $(XMLS) introspection/all.xml introspection/generic-types.xml introspection/errors.xml introspection/vpn-errors.xml tools/doc-generator.xsl introspection/generic-types.xml
- @install -d docs
- $(XSLTPROC) tools/doc-generator.xsl introspection/all.xml > $@
-
-all: $(GENERATED_FILES)
-
-clean:
- rm -f $(GENERATED_FILES)
-
+include $(GLIB_MAKEFILE)
+
+SUBDIRS = \
+ . \
+ shared \
+ introspection \
+ libnm-core \
+ libnm \
+ src \
+ callouts \
+ clients \
+ tools \
+ policy \
+ data \
+ po \
+ man \
+ examples
+
+if WITH_LEGACY_LIBRARIES
+SUBDIRS += \
+ libnm-util \
+ libnm-glib
endif
-SUBDIRS = marshallers
-
-if NO_GIO
-SUBDIRS += gfilemonitor
+SUBDIRS += \
+ docs \
+ vapi
+
+@GNOME_CODE_COVERAGE_RULES@
+
+EXTRA_DIST = \
+ CONTRIBUTING \
+ NetworkManager.pc.in \
+ intltool-extract.in \
+ intltool-merge.in \
+ intltool-update.in \
+ Makefile.glib \
+ autogen.sh \
+ valgrind.suppressions
+
+DISTCHECK_CONFIGURE_FLAGS = \
+ --enable-tests=yes \
+ --with-valgrind=no \
+ --enable-gtk-doc \
+ --enable-more-warnings=error \
+ --with-udev-dir=$$dc_install_base/lib/udev \
+ --with-wext=no \
+ --enable-ifcfg-rh \
+ --enable-ifupdown \
+ --enable-ifnet
+
+if BUILD_SETTING_DOCS
+dist-check-setting-docs:
+else
+dist-check-setting-docs:
+ @echo "*** gobject-introspection and pygobject are needed to run 'make dist'. ***"
+ @false
endif
-SUBDIRS += \
- libnm-util \
- libnm-glib \
- src \
- initscript \
- test \
- po \
- man \
- include \
- introspection \
- callouts \
- system-settings \
- tools \
- policy \
- docs/libnm-glib \
- docs/libnm-util
-
-EXTRA_DIST = \
- CONTRIBUTING \
- NetworkManager.pc.in \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in
-
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-tests=yes
+dist: dist-check-setting-docs
DISTCLEANFILES = intltool-extract intltool-merge intltool-update
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = NetworkManager.pc
+CLEANFILES = cscope.in.out cscope.out cscope.po.out
+
+cscope:
+ cscope -b -q -R -sshared -ssrc -slibnm-core -slibnm -slibnm-glib -slibnm-util -sclients;
+
+.PHONY: cscope