AUTOMAKE_OPTIONS = foreign
-SUBDIRS = debian gst-libs pkgconfig sys tests docs
+SUBDIRS = debian.upstream gst-libs gst pkgconfig tests docs
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = \
configure depcomp install-sh ltmain.sh \
Makefile.in missing config.h.in gtk-doc.make
-deb: dist
- -mkdir -p debian-build
- cd debian-build && \
- tar zxvf ../$(PACKAGE)-$(VERSION).tar.gz && \
- cd $(PACKAGE)-$(VERSION) && dpkg-buildpackage -rfakeroot -uc -us
+DEB_BUILDDIR = debian.build
+
+deb:
+ dpkg-buildpackage -rfakeroot -uc -us
+
+deb.upstream: dist
+ -mkdir -p $(DEB_BUILDDIR)
+ cd $(DEB_BUILDDIR) && \
+ tar zxvf ../$(PACKAGE)-$(VERSION).tar.gz && \
+ cd $(PACKAGE)-$(VERSION) && \
+ $(LN_S) debian.upstream debian && \
+ $(MAKE) deb -f Makefile.am