+install-dev: $(addsuffix -install-dev,$(SUBDIRS))
+
+%-install:
+ @echo "Installing $@"
+ $(Q)$(MAKE) $(MAKEOPTS) -C $* install
+
+%-install-dev:
+ @echo "Installing $@"
+ $(Q)$(MAKE) $(MAKEOPTS) -C $* install-dev
+
+distclean: clean
+ $(Q)rm -f $(LDIRT)
+
+realclean: distclean
+ $(Q)rm -f $(CONFIGURE) .gitcensus
+
+#
+# All this gunk is to allow for a make dist on an unconfigured tree
+#
+dist: include/builddefs include/platform_defs.h default
+ifeq ($(HAVE_BUILDDEFS), no)
+ $(Q)$(MAKE) $(MAKEOPTS) -C . $@
+else
+ $(Q)$(MAKE) $(MAKEOPTS) $(SRCTAR)
+endif
+
+deb: include/builddefs include/platform_defs.h
+ifeq ($(HAVE_BUILDDEFS), no)
+ $(Q)$(MAKE) $(MAKEOPTS) -C . $@
+else
+ # need to build translations before the source tarball
+ $(Q)$(MAKE) $(MAKEOPTS) -C po
+ $(Q)$(MAKE) $(MAKEOPTS) $(SRCDIR)
+ $(Q)rm -f $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
+ $(Q)$(LN_S) $(SRCTAR) $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
+ $(Q)cd $(SRCDIR) && dpkg-buildpackage $$LOCAL_DPKG_OPTIONS # -sa -S
+endif
+
+$(SRCDIR) : $(_FORCE) $(SRCTAR)
+ rm -fr $@
+ $(Q)$(TAR) -zxvf $(SRCTAR)
+
+$(SRCTAR) : default $(SRCTARINC) .gitcensus
+ $(Q)$(TAR) --transform "s,^,$(SRCDIR)/," -zcf $(SRCDIR).tar.gz \
+ `cat .gitcensus` $(SRCTARINC)
+ echo Wrote: $@
+
+$(SRCTARXZ) : default $(SRCTARINC) .gitcensus
+ $(Q)$(TAR) --transform "s,^,$(SRCDIR)/," -Jcf $(SRCDIR).tar.xz \
+ `cat .gitcensus` $(SRCTARINC)
+ echo Wrote: $@