refactor: reorganize into subdirs (config/ util/ http/ notifs/ queue/ integrations/ static/)

This commit is contained in:
2026-06-09 00:56:27 +02:00
parent 4bcc34ec86
commit 32deda57e0
23 changed files with 33 additions and 18 deletions
+21 -6
View File
@@ -1,12 +1,25 @@
CC = gcc CC = gcc
CFLAGS = -O2 -Wall -Wextra -I. -pthread CFLAGS = -O2 -Wall -Wextra -pthread \
-I. -Iconfig -Iutil -Ihttp -Inotifs -Iqueue -Iintegrations
LDFLAGS = -pthread -lcurl LDFLAGS = -pthread -lcurl
TARGET = iptv-dl TARGET = iptv-dl
SRCS = main.c config.c buf.c json.c http.c discord.c jellyfin.c \
iptv_api.c queue.c notify.c handlers.c server.c SRCS = main.c \
config/config.c \
util/buf.c \
util/json.c \
http/http.c \
http/server.c \
http/handlers.c \
notifs/notify.c \
queue/iptv_api.c \
queue/queue.c \
integrations/discord.c \
integrations/jellyfin.c
OBJS = $(SRCS:.c=.o) OBJS = $(SRCS:.c=.o)
# Install paths (override with: make install PREFIX=/usr/local) # Install paths (override: make install PREFIX=/usr/local)
PREFIX = /usr/local PREFIX = /usr/local
BINDIR = $(PREFIX)/bin BINDIR = $(PREFIX)/bin
SHAREDIR = $(PREFIX)/share/iptv-dl SHAREDIR = $(PREFIX)/share/iptv-dl
@@ -29,8 +42,10 @@ install: $(TARGET)
install -m 644 static/series_show.js $(SHAREDIR)/series_show.js install -m 644 static/series_show.js $(SHAREDIR)/series_show.js
install -m 644 static/header.html $(SHAREDIR)/header.html install -m 644 static/header.html $(SHAREDIR)/header.html
install -m 644 static/footer.html $(SHAREDIR)/footer.html install -m 644 static/footer.html $(SHAREDIR)/footer.html
@echo "Installed. Create config at $(SYSCONFDIR)/config.json or ~/.iptv-downloader/config.json" @echo ""
@echo "Run: $(BINDIR)/iptv-dl --dump-config (to see defaults)" @echo "Installed to $(BINDIR)/iptv-dl"
@echo "Create config at ~/.iptv-downloader/config.json or $(SYSCONFDIR)/config.json"
@echo "Run: iptv-dl --dump-config (to see active defaults)"
clean: clean:
rm -f $(OBJS) $(TARGET) rm -f $(OBJS) $(TARGET)
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File