diff --git a/Makefile b/Makefile index 2ef696b..6a2af46 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # File-system location (directory) of static media. # See HTURI for the web-visible component. -HTDOCS = /var/www/htdocs +HTDOCS = /usr/local/www/bouquins/ # URL location (path) of static media. # See HTDOCS. @@ -13,11 +13,11 @@ HTURI = # File-system location (directory) of CGI script. # See CGIURI. -CGIBIN = /var/www/cgi-bin +CGIBIN = /usr/local/www/bouquins/cgi-bin # File-system location of database. # See RDDIR. -DATADIR = /var/www/data +DATADIR = /usr/local/www/data # Web-server relative location of system log file. # This will have all logging messages by the system. @@ -59,8 +59,13 @@ sinclude GNUmakefile.local DATABASE = metadata.db OBJS = db.o json.o main.o + HTMLS = index.html -JSMINS = index.min.js +JSMINS = index.min.js +EXTJS = externals/vue.min.js +CSS = externals/bootstrap.min.css +FONTS = externals/fonts/* + CFLAGS += -g -W -Wall -O2 $(SECURE) CFLAGS += -DLOGFILE=\"$(LOGFILE)\" CFLAGS += -DDATADIR=\"$(RDDIR)\" @@ -72,8 +77,11 @@ all: $(TARGET) $(HTMLS) $(JSMINS) api: swagger.json installwww: all - mkdir -p $(HTDOCS) - install -m 0444 $(HTMLS) $(JSMINS) $(HTDOCS) + mkdir -p $(HTDOCS) $(HTDOCS)/css $(HTDOCS)/fonts $(HTDOCS)/js + install -m 0444 $(HTMLS) $(HTDOCS) + install -m 0444 $(JSMINS) $(EXTJS) $(HTDOCS)/js + install -m 0444 $(CSS) $(HTDOCS)/css + install -m 0444 $(FONTS) $(HTDOCS)/fonts installapi: api mkdir -p $(APIDOCS) @@ -82,6 +90,7 @@ installapi: api updatecgi: all mkdir -p $(CGIBIN) install -m 0555 $(TARGET) $(CGIBIN)/$(CGINAME) + install -m 0555 $(OBJS) $(CGIBIN)/ installcgi: updatecgi mkdir -p $(DATADIR) @@ -97,7 +106,7 @@ clean: -e "s!@CGIURI@!$(CGIURI)!g" $< >$@ $(TARGET): $(OBJS) - $(CC) $(STATIC) -o $@ $(OBJS) ksql.o $(LDFLAGS) -lkcgi -lkcgijson -lz -lsqlite3 -pthread + $(CC) $(STATIC) -o $@ $(OBJS) externals/ksql.o $(LDFLAGS) -lkcgi -lkcgijson -lz -lsqlite3 -pthread $(OBJS): extern.h diff --git a/bootstrap.min.css b/externals/bootstrap.min.css similarity index 100% rename from bootstrap.min.css rename to externals/bootstrap.min.css diff --git a/index.html b/index.html index 7f28be4..5aac353 100644 --- a/index.html +++ b/index.html @@ -4,43 +4,42 @@
Cette bibliothèque contient actuellement {{ booksCount }} livres et BD en format papier ou électronique.
-Titre | -Serie | Auteur(s) | +Serie | |
---|---|---|---|---|
{{ book.title }} | -- {{ book.series ? book.series.name : '' }} - {{ book.series ? book.series.idx : '' }} - | +{{ book.title }} | - {{ author.name }} + {{ author.name }} | ++ {{ book.series ? book.series.name : '' }} + {{ book.series ? book.series.idx : '' }} + |