Skip to content

Commit

Permalink
Moved install script to main Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Yey007 committed Dec 4, 2024
1 parent a67ed0f commit ca6a0d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ LIBOBJ := $(LIBSRC:.cpp=.o)
LIBDEPS := $(LIBOBJ:.o=.d)
$(LIBNAME): CFLAGS += $(LIBINCLUDE)

LIBINSTALL := /usr/local/lib
HEADERINSTALL := /usr/local/include
INSTALLNAME := cev_icp

MAINSRC := $(shell find $(SRCDIR) -name "*.cpp" -type f)
MAININCLUDE := $(shell sdl2-config --cflags) \
-I/usr/include/eigen3 \
Expand Down Expand Up @@ -91,6 +95,17 @@ view: $(MAINNAME)
bench: $(MAINNAME)
./$(MAINNAME) -S ex_data/scan$(N)/first.conf -D ex_data/scan$(N)/second.conf --method $(METHOD) --bench

.PHONY: install
install: $(LIBNAME)
mkdir -p $(LIBINSTALL)
mkdir -p $(HEADERINSTALL)/$(INSTALLNAME)
mv $(LIBNAME) $(LIBINSTALL)
cp -r $(INCLUDEDIR)/* $(HEADERINSTALL)/$(INSTALLNAME)

.PHONY: uninstall
uninstall:
rm -r $(LIBINSTALL)/$(LIBNAME) $(HEADERINSTALL)/$(INSTALLNAME)

# Not building book rn, add these commands to build
# cd book; \
pdflatex icp.tex; \
Expand Down
21 changes: 0 additions & 21 deletions install/Makefile

This file was deleted.

0 comments on commit ca6a0d1

Please sign in to comment.