OSDN Git Service

Check function return value
[android-x86/hardware-intel-common-vaapi.git] / Makefile.am
index 552f9b8..4ad6b8f 100644 (file)
@@ -1,6 +1,9 @@
-AUTOMAKE_OPTIONS = foreign
+SUBDIRS = src
+
+if ENABLE_TESTS
+SUBDIRS += test
+endif
 
-SUBDIRS = debian.upstream src
 
 # Extra clean files so that maintainer-clean removes *everything*
 MAINTAINERCLEANFILES = \
@@ -8,16 +11,4 @@ MAINTAINERCLEANFILES = \
        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
+EXTRA_DIST = Android.mk