File tree 2 files changed +15
-21
lines changed
2 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ LIBOBJ := $(LIBSRC:.cpp=.o)
26
26
LIBDEPS := $(LIBOBJ:.o=.d )
27
27
$(LIBNAME ) : CFLAGS += $(LIBINCLUDE )
28
28
29
+ LIBINSTALL := /usr/local/lib
30
+ HEADERINSTALL := /usr/local/include
31
+ INSTALLNAME := cev_icp
32
+
29
33
MAINSRC := $(shell find $(SRCDIR ) -name "* .cpp" -type f)
30
34
MAININCLUDE := $(shell sdl2-config --cflags) \
31
35
-I/usr/include/eigen3 \
@@ -91,6 +95,17 @@ view: $(MAINNAME)
91
95
bench : $(MAINNAME )
92
96
./$(MAINNAME ) -S ex_data/scan$(N ) /first.conf -D ex_data/scan$(N ) /second.conf --method $(METHOD ) --bench
93
97
98
+ .PHONY : install
99
+ install : $(LIBNAME )
100
+ mkdir -p $(LIBINSTALL )
101
+ mkdir -p $(HEADERINSTALL ) /$(INSTALLNAME )
102
+ mv $(LIBNAME ) $(LIBINSTALL )
103
+ cp -r $(INCLUDEDIR ) /* $(HEADERINSTALL ) /$(INSTALLNAME )
104
+
105
+ .PHONY : uninstall
106
+ uninstall :
107
+ rm -r $(LIBINSTALL ) /$(LIBNAME ) $(HEADERINSTALL ) /$(INSTALLNAME )
108
+
94
109
# Not building book rn, add these commands to build
95
110
# cd book; \
96
111
pdflatex icp.tex; \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments