aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0e60318..fc0e340 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ SRC += $(NANOPB_DIR)/pb_common.c
PROTO = $(shell find src/ -type f -name '*.proto')
OBJ = $(PROTO:%.proto=$(BUILD_DIR)/%.pb.c.o)
OBJ += $(SRC:%=$(BUILD_DIR)/%.o)
-H = include/libumumble.h
+INCLUDE = $(shell find include/)
.PHONY: all static shared tests clean install-static install-shared install
@@ -31,16 +31,16 @@ $(BUILD_DIR)/%.c.o: %.c
mkdir -p '$(@D)'
$(CC) -c -o $@ $(INCLUDES) $(CFLAGS) $<
-tests:
+tests: $(SNAME)
$(MAKE) -C tests
clean:
rm -rf $(SNAME) $(DNAME) $(BUILD_DIR) src/*.pb.h src/*.pb.c
$(MAKE) -C tests clean
-install-header: $(H)
+install-header: $(INCLUDE)
install -d $(DESTDIR)$(INCLUDEDIR)
- install -m 644 $^ $(DESTDIR)$(INCLUDEDIR)
+ cp -Rv include/. $(DESTDIR)$(INCLUDEDIR)
install-static: $(SNAME)
install -d $(DESTDIR)$(LIBDIR)