]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - Makefile.am
build: add meson
[mirror_lxcfs.git] / Makefile.am
index 3a247c0a5a43ca9d11d19eaa959869c0d40d9307..0c0ae0bbbdbb5bccb10d04cf4c91ed945eb8e387 100644 (file)
@@ -1,61 +1,10 @@
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = tests share
-DIST_SUBDIRS = tests share
+LIBTOOL_DEPS = @LIBTOOL_DEPS@
+SUBDIRS = config share src tests doc
+DIST_SUBDIRS = config share src tests doc
 
-VERSION_CURRENT  = 0
-VERSION_REVISION = 0
-VERSION_AGE      = 0
+EXTRA_DIST = lxcfs.spec
 
-AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\"
-AM_CFLAGS += $(DBUS_CFLAGS) $(NIH_CFLAGS) $(NIH_DBUS_CFLAGS) $(CGMANAGER_CFLAGS) $(FUSE_CFLAGS)
-AM_LDFLAGS = $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS) $(CGMANAGER_LIBS) $(FUSE_LIBS)
-
-bin_PROGRAMS = lxcfs
-
-lxcfs_SOURCES = lxcfs.c cgmanager.c cgmanager.h cpuset.c
-
-EXTRA_DIST = \
-       lxcfs.man.add
-
-if HAVE_HELP2MAN
-man_MANS = lxcfs.1
-
-lxcfs.1: lxcfs lxcfs.man.add
-       $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1
-endif
-
-TEST_READ: tests/test-read.c
-       $(CC) -o tests/test-read tests/test-read.c
-
-TEST_CPUSET: tests/cpusetrange.c cpuset.c
-       $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
-
-tests: TEST_READ TEST_CPUSET
-
-distclean:
-       rm -rf .deps/ \
-               INSTALL \
-               Makefile \
-               Makefile.in \
-               aclocal.m4 \
-               autom4te.cache/ \
-               cgmanager.o \
-               compile \
-               config.guess \
-               config.h \
-               config.h.in \
-               config.log \
-               config.status \
-               config.sub \
-               configure \
-               depcomp \
-               install-sh \
-               libtool \
-               ltmain.sh \
-               lxcfs \
-               lxcfs.1 \
-               lxcfs.o \
-               m4/ \
-               missing \
-               stamp-h1
+libtool: $(LIBTOOL_DEPS)
+       $(SHELL) ./config.status libtool