Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
dlight/Makefile
Henrik Hautakoski 1350330dd2 dlhist: rename to proc-cache.
A new datastructure is about to take dlhist place. dlhist is currently
implemented as a mixture of an "process cache" that should record what
rss items has been processed (that is why the url is used as a unique
identifier), but right now it only stores an url if it has been
downloaded. A new datastructure that should be "download history"
shall be implemented, that will keep track of what title and where
it has been downloaded to. this will make it possible to only
download an rss title to a location once.

Splitting this datastructure into two separated structures is trivial
as a "process cache" will threat URL's as a unique identifier and
a "download history" will threat the title in an rss item as a
unique identifier (and also track it's destinations).

This commit does not change any functionality, I just rename
this to keep the "dlhist" prefix and source files clear for
when implementing the real dlhist.
2011-11-14 16:11:18 +01:00

23 lines
592 B
Makefile

CC = gcc
LDFLAGS = -lxml2 -lcurl -lpcre
CFLAGS = -g -Wall -O2 -I/usr/include/libxml2
PROGRAMS = dlight dlight-compile dlight-read-config dlight-filter-check
all : $(PROGRAMS)
install : $(PROGRAMS)
cp $^ $(HOME)/bin/
dlight : dlight.o buffer.o env.o http.o rss.o lockfile.o filter.o cconf.o \
proc-cache.o error.o
dlight-compile : compile.o buffer.o env.o lockfile.o filter.o cconf.o error.o
dlight-read-config : read-config.o buffer.o env.o cconf.o error.o
dlight-filter-check: filter-check.o filter.o error.o
dlight-% : %.o
$(CC) $(LDFLAGS) -o $@ $^
clean :
$(RM) *.o $(PROGRAMS)