device: renew dhcp leases on awake for software devices
[NetworkManager.git] / Makefile.am
index 89fb2ae..a79bddc 100644 (file)
@@ -1,58 +1,72 @@
-if WITH_DOCS
+include $(GLIB_MAKEFILE)
 
-all:
+SUBDIRS = \
+       . \
+       shared \
+       introspection \
+       libnm-core \
+       libnm \
+       src \
+       callouts \
+       clients \
+       tools \
+       policy \
+       data \
+       po \
+       man \
+       examples
 
-XSLTPROC = xsltproc --xinclude --nonet
-
-XMLS = $(wildcard introspection/nm-*.xml)
-# Figure out if we need ASYNC_INTROSPECT and add it later
+if WITH_LEGACY_LIBRARIES
+SUBDIRS += \
+       libnm-util \
+       libnm-glib
+endif
 
-GENERATED_FILES = \
-       docs/spec.html
+SUBDIRS += \
+       docs \
+       vapi
 
-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 > $@
+@GNOME_CODE_COVERAGE_RULES@
 
-all: $(GENERATED_FILES)
+EXTRA_DIST = \
+       CONTRIBUTING \
+       NetworkManager.pc.in \
+       intltool-extract.in \
+       intltool-merge.in \
+       intltool-update.in \
+       Makefile.glib \
+       autogen.sh \
+       valgrind.suppressions
 
-clean:
-       rm -f $(GENERATED_FILES)
+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 = marshallers
-
-if NO_GIO
-SUBDIRS += gfilemonitor
-endif
-
-SUBDIRS += \
-          libnm-util                   \
-          libnm-glib                   \
-          src                          \
-          initscript                   \
-          test                         \
-          po                           \
-          man                          \
-          include                      \
-          introspection        \
-          callouts \
-          system-settings \
-          tools \
-          policy \
-          docs/libnm-glib
-
-EXTRA_DIST =                           \
-       CONTRIBUTING                    \
-       NetworkManager.pc.in    \
-       intltool-extract.in             \
-       intltool-merge.in               \
-       intltool-update.in              
-
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+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