From a8a94d538fc9b7f60f54ef83a2497cd5736e882a Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 9 Jul 2022 13:00:56 +0100 Subject: [PATCH] also install the header --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2bb5b8d..31c7676 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ OBJECTS=$(SHSOURCES:.S=.o) $(CSOURCES:.c=.o) $(CXXSOURCES:.cpp=.o) LIBRARY=./libserial.a LIBDIR:=$(shell $(CC) -print-file-name=.) +INCDIR:=$(LIBDIR)/include all: $(SOURCES) $(LIBRARY) @@ -33,8 +34,11 @@ clean: rm -f $(OBJECTS) $(LIBRARY) install: - @ echo "Installing in $(LIBDIR)" + @ echo "Installing library in $(LIBDIR)" + @ echo "Installing include in $(INCDIR)" cp $(LIBRARY) $(LIBDIR) + cp include/serial.h $(INCDIR) uninstall: rm -f $(LIBDIR)/$(LIBRARY) + rm -f $(INCDIR)/serial.h