quite better makefile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Dmitry Isaenko 2025-02-09 21:46:47 +03:00
parent 8ce71e4701
commit 94bcef2016
2 changed files with 10 additions and 7 deletions

View file

@ -1,18 +1,21 @@
CC = gcc
MKDIR_P = mkdir -p
CFLAGS += -std=c17 -I/usr/include/ -O2 -Wno-unused-result
MKDIR_P = mkdir -p
APP_NAME = argb-colors
INSTALL_DIR = /usr/bin/
all: $(APP_NAME)
argb-colors: ./src/$(APP_NAME).c
$(APP_NAME): ./src/$(APP_NAME).c
$(MKDIR_P) ./bin
$(CC) -std=c17 -I/usr/include/ ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME)
$(CC) $(CFLAGS) ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME)
clean:
rm -rf ./bin/*.o \
rm -f ./bin/*.o \
./bin/$(APP_NAME)
install:
install ./bin/$(APP_NAME) /usr/bin
install ./bin/$(APP_NAME) $(INSTALL_DIR)
uninstall:
rm /usr/bin/$(APP_NAME)
rm $(INSTALL_DIR)$(APP_NAME)

View file

@ -8,7 +8,7 @@ enum separate_options {
B1, B2, B3, B4, B5, B6
};
const char *argp_program_version = "argb-color 0.1\n\n\
const char *argp_program_version = "argb-color 0.2\n\n\
License: GPLv3+: GNU GPL version 3 or newer <https://gnu.org/licenses/gpl.html>.\n\
Dmitry Isaenko, 2025, Russia.\n\
https://redrise.ru, https://github.com/developersu";