Nicer structure
This commit is contained in:
5
Makefile
5
Makefile
@@ -13,7 +13,8 @@ GTK_LIBS := $(shell $(PKG_CONFIG) --libs gtk4)
|
||||
PACKAGE := gkeymapper
|
||||
TARGET := gkeymapper
|
||||
SRC_DIR := src
|
||||
SOURCES := $(SRC_DIR)/main.cpp
|
||||
SOURCES := $(wildcard $(SRC_DIR)/*.cpp)
|
||||
HEADERS := $(wildcard $(SRC_DIR)/*.h)
|
||||
PREFIX ?= /usr/local
|
||||
LOCALEDIR := $(PREFIX)/share/locale
|
||||
ASSETS_DIR := $(PREFIX)/share/$(PACKAGE)/assets
|
||||
@@ -29,7 +30,7 @@ MO_FILES := $(patsubst %,locale/%/LC_MESSAGES/$(PACKAGE).mo,$(LANGS))
|
||||
|
||||
all: $(TARGET) translations
|
||||
|
||||
$(TARGET): $(SOURCES)
|
||||
$(TARGET): $(SOURCES) $(HEADERS)
|
||||
$(CXX) $(CXXFLAGS) $(GTK_CFLAGS) -o $@ $(SOURCES) $(GTK_LIBS)
|
||||
|
||||
translations: $(MO_FILES)
|
||||
|
||||
Reference in New Issue
Block a user