+ test -f "$(SRCDIR)/debian/changelog" || git submodule update --init
+
+# FIXME: fully merge our and upstream (which is also the upstream for debian's "downstream") packaging
+# so that the top-level debian directory is the canonical source.
+$(BUILDDIR): submodule debian/changelog
+ rm -rf $@ $@.tmp
+ cp -a $(SRCDIR) $@.tmp
+ rm $@.tmp/debian/changelog $@.tmp/debian/compat
+ sed -i '/frrinit\.sh/d' $@.tmp/debian/rules
+ cp -a debian/* $@.tmp/debian/
+ mv $@.tmp $@
+
+$(ORIG_SRC_TAR): $(BUILDDIR)
+ tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)