add install logic

parent a6f60178
......@@ -22,3 +22,5 @@ testprog: test.o $(LIBNAME).a
clean:
rm -f *.a *.o *.so testprog usb-enum
-include Makefile.install
VERSION = $(shell git describe --dirty --tags --long)
OATTN_ROOT = /acc/local/L867/drv/oattn
INSTALL_ROOT = $(OATTN_ROOT)/$(VERSION)
install:
mkdir -p $(INSTALL_ROOT)/lib
mkdir -p $(INSTALL_ROOT)/include
mkdir -p $(INSTALL_ROOT)/bin
install -m 0775 liboasis-usb-att.a liboasis-usb-att.so $(INSTALL_ROOT)/lib
install -m 0775 oautest $(INSTALL_ROOT)/bin
install -m 0775 liboasis-usb-att.h usb-enum.h $(INSTALL_ROOT)/include
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment