diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:32:55 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:32:55 -0800 |
commit | ef9ab1fd141f4057d41f2d6ed8ab8d67c44894d5 (patch) | |
tree | e4005b7a641303b021eb54c2aae5676b5f92a72d /Makefile | |
parent | 1fd608288ee47c2c560817f12f14b21069fed2f6 (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -22,11 +22,13 @@ RAMEN_OBJ := $(RAMEN_SRC:$(RAMEN_DIR)/%.c=$(RAMEN_OBJ_DIR)/%.o) MSG_SRC := $(wildcard $(MSG_DIR)/*.c) MSG_OBJ := $(MSG_SRC:$(MSG_DIR)/%.c=$(MSG_OBJ_DIR)/%.o) +DESTDIR := /usr/local/bin + LDFLAGS := LDLIBS := LDFLAGS += $(NIX_LDFLAGS_COMPILE) -.PHONY: all clean +.PHONY: all clean install all: $(RAMEN_EXE) $(MSG_EXE) @@ -51,4 +53,8 @@ $(BIN_DIR) $(OBJ_DIR) $(MSG_OBJ_DIR) $(RAMEN_OBJ_DIR): clean: @$(RM) -rv $(BIN_DIR) $(OBJ_DIR) $(MSG_OBJ_DIR) $(RAMEN_OBJ_DIR) result +install: + install -m 755 $(BIN_DIR)/ramen $(DESTDIR) + install -mm 755 $(BIN_DIR)/msg $(DESTDIR) + -include $(OBJ:.o=.d) |