Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55f4d731 authored by Ben Hutchings's avatar Ben Hutchings Committed by Shuah Khan
Browse files

selftests: memfd: Stop unnecessary rebuilds



Instead of explicitly running the compiler, add dependencies and take
advantage of implicit rules to build only as necessary.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent c1ee4831
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -4,16 +4,16 @@ CFLAGS += -I../../../../include/uapi/
CFLAGS += -I../../../../include/
CFLAGS += -I../../../../usr/include/

all:
	$(CC) $(CFLAGS) memfd_test.c -o memfd_test

TEST_PROGS := memfd_test

all: $(TEST_PROGS)

include ../lib.mk

build_fuse:
	$(CC) $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt
	$(CC) $(CFLAGS) fuse_test.c -o fuse_test
build_fuse: fuse_mnt fuse_test

fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags)
fuse_mnt: LDFLAGS += $(shell pkg-config fuse --libs)

run_fuse: build_fuse
	@./run_fuse_test.sh || echo "fuse_test: [FAIL]"