diff options
| author | 0x221E | 2026-04-23 03:27:41 +0200 |
|---|---|---|
| committer | 0x221E | 2026-04-23 03:27:41 +0200 |
| commit | 7303d05207297d1f72c5c73eb4b175cdd6da44c4 (patch) | |
| tree | a56f3b41a8b17975abe13348fb097707760ee4eb /Makefile | |
| parent | 14393807165e9379adbbea671748a6c27bf34847 (diff) | |
build: add install command to Makefile
To create a system-wide utility after latest changes, Makefile now
has the utility to install the binary to the system.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -16,13 +16,21 @@ $(BUILD_DIR)/%.c.o: %.c @echo "[CC] Compiled $< to $@" debug: $(OBJ_FILES) - @$(CC) $(OBJ_FILES) -o $(TARGET_EXEC) -g $(CFLAGS) + @$(CC) $(OBJ_FILES) -o $(TARGET_EXEC) -g $(CFLAGS) -DDEBUG -fsanitize=address + @echo "[DONE] Finished compiling $(TARGET_EXEC) in debug build." + +debug-nosan: $(OBJ_FILES) + @$(CC) $(OBJ_FILES) -o $(TARGET_EXEC) -g -DDEBUG $(CFLAGS) @echo "[DONE] Finished compiling $(TARGET_EXEC) in debug build." prod: $(OBJ_FILES) @$(CC) $(OBJ_FILES) -o $(TARGET_EXEC) $(CFLAGS) @echo "[DONE] Finished compiling $(TARGET_EXEC) in production build." +install: prod + @cp ./pkgman /usr/bin/ + @echo "Installed application to /usr/bin" + clean: @rm -rf build/ @rm pkgman |
