OSDN Git Service

github: Added slack team to readme
[android-x86/hardware-intel-common-libva.git] / Makefile.am
index e75a2db..beac7e9 100644 (file)
 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
 AUTOMAKE_OPTIONS = foreign
 
-SUBDIRS = va test
-if BUILD_DUMMY_DRIVER
-SUBDIRS += dummy_drv_video
-endif
-if BUILD_I965_DRIVER
-SUBDIRS += i965_drv_video
-endif
+SUBDIRS = va dummy_drv_video pkgconfig test debian.upstream doc
 
-pcfiles = libva.pc
-pcfiles += libva-x11.pc
-if USE_GLX
-pcfiles += libva-glx.pc
-endif
+# 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
 
-pkgconfigdir = @pkgconfigdir@
-pkgconfig_DATA = $(pcfiles)
+DEB_BUILDDIR = debian.build
 
-EXTRA_DIST = libva.pc.in libva-x11.pc.in libva-glx.pc.in
+deb:
+       @[ -d debian ] || ln -s debian.upstream debian
+       dpkg-buildpackage -rfakeroot -uc -us
 
-CLEANFILES = $(pcfiles)
+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