also install the header

This commit is contained in:
Lephenixnoir 2022-07-09 13:00:56 +01:00
parent 93ac24def1
commit a8a94d538f
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 5 additions and 1 deletions

View File

@ -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