Update Makefile

This commit is contained in:
Utkarsh Verma 2023-03-30 07:04:11 +05:30
parent 8dd9bc6a7d
commit 2395be73c8
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC
2 changed files with 3 additions and 3 deletions

View File

@ -10,8 +10,8 @@ LDLIBS := -lX11
BIN := dwmblocks
VPATH := $(SRC_DIR)
OBJS := $(subst $(SRC_DIR)/,$(BUILD_DIR)/,$(subst .c,.o,$(wildcard $(SRC_DIR)/*.c)))
OBJS += $(addprefix $(BUILD_DIR)/,$(subst .c,.o,$(wildcard *.c)))
OBJS := $(patsubst $(SRC_DIR)/%.c,$(BUILD_DIR)/%.o,$(wildcard $(SRC_DIR)/*.c))
OBJS += $(patsubst %.c,$(BUILD_DIR)/%.o,$(wildcard *.c))
all: $(BUILD_DIR)/$(BIN)

View File

@ -130,7 +130,7 @@ void init() {
int main(const int argc, const char *argv[]) {
if (setupX()) {
fprintf(stderr, "dwmblocks: Failed to open display\n");
fprintf(stderr, "%s\n", "dwmblocks: Failed to open display");
return 1;
}