summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-05-06 15:36:50 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-05-06 15:36:50 -0400
commit851b54d4621f8c27abb65d962481e0644382d173 (patch)
treec794ce1be82bea1cf9c28e26d63b9c63bc23d78a
parent9cc4f2daad773f27f7f813b4d4b54e248018be0a (diff)
remove function in makefile
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f2e5640..0802007 100644
--- a/Makefile
+++ b/Makefile
@@ -12,12 +12,16 @@ CFLAGS ?= -Werror -Wall
build: build_dir $(OBJS)
$(CC) -shared -o $(BUILD_DIR)/libopensmarts.so $(addprefix $(OBJ_DIR)/, $(OBJS))
-install:
- install -m 755 ./build/libopensmarts.so /usr/lib64/libopensmarts.so
+install: build
+ install -m 755 ./build/libopensmarts.so /usr/lib/libopensmarts.so
rm -rf /usr/include/osm
mkdir -p /usr/include/osm
cp -r ./include/osm /usr/include
+remove:
+ rm -rf /usr/include/osm
+ rm -rf /usr/lib/libopensmarts.so
+
%.o: $(SRC_DIR)/%.c
$(CC) $(CFLAGS) -c -fpic -I$(INCLUDE_DIR) -o $(BUILD_DIR)/artifacts/$@ $<