H264_Encoding: Parse the packed header data from user to fix the hacked code of HW...
[platform/upstream/libva-intel-driver.git] / Makefile.am
index 099031a..552f9b8 100644 (file)
@@ -1,9 +1,23 @@
 AUTOMAKE_OPTIONS = foreign
 
-SUBDIRS = src
+SUBDIRS = debian.upstream src
 
 # Extra clean files so that maintainer-clean removes *everything*
 MAINTAINERCLEANFILES = \
        aclocal.m4 compile config.guess config.sub \
        configure depcomp install-sh ltmain.sh     \
        Makefile.in missing
+
+DEB_BUILDDIR = debian.build
+
+deb:
+       @[ -d debian ] || ln -s debian.upstream debian
+       dpkg-buildpackage -rfakeroot -uc -us
+
+deb.upstream: dist
+       -mkdir -p $(DEB_BUILDDIR)
+       cd $(DEB_BUILDDIR)                              && \
+       rm -rf $(PACKAGE)-$(VERSION)                    && \
+       tar zxvf ../$(PACKAGE)-$(VERSION).tar.gz        && \
+       cd $(PACKAGE)-$(VERSION)                        && \
+       $(MAKE) deb -f Makefile.am