guestfs-structs.h \
guestfs-actions.h \
guestfs-internal-actions.h \
- guestfs-actions.c \
- guestfs-bindtests.c \
+ actions.c \
+ bindtests.c \
guestfs-actions.pod \
guestfs-availability.pod \
guestfs-structs.pod \
guestfs.c \
guestfs.h \
guestfs-actions.h \
- guestfs-actions.c \
- guestfs-bindtests.c \
guestfs-internal.h \
+ guestfs-structs.h \
guestfs_protocol.h \
gettext.h \
+ actions.c \
+ bindtests.c \
+ launch.c \
+ proto.c \
libguestfs.syms
libguestfs_la_LIBADD = $(LTLIBTHREAD) ../gnulib/lib/libgnu.la
--name "guestfs" \
--release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
> $@
+
+# Check user doesn't try to do 'make all' or 'make check' as root.
+# https://www.redhat.com/archives/libguestfs/2010-April/msg00098.html
+
+all-local: checkroot
+check-local: checkroot
+checkroot:
+ @if [ "`id -u`" = 0 ]; then \
+ echo "*** Error: Don't run 'make' or 'make check' as root."; \
+ exit 1; \
+ fi