summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 14:17:00 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 14:34:25 -0300
commitd65e236083da05aea35e5912d26423bdb9f2177e (patch)
treef75349bd72e1239b81fa0a2e10388b7c2db897f6 /Makefile
parent3c75e21c2b972d26f9dd4a2817302012d91b286a (diff)
downloadeeshow-d65e236083da05aea35e5912d26423bdb9f2177e.tar.gz
eeshow-d65e236083da05aea35e5912d26423bdb9f2177e.tar.bz2
eeshow-d65e236083da05aea35e5912d26423bdb9f2177e.zip
eeshow/: add online help with h or ? (WIP)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d2132ec..4971c05 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ OBJS = main.o \
kicad/lib-render.o kicad/dwg.o kicad/delta.o \
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o gui/input.o \
gui/progress.o gui/glabel.o gui/sheet.o gui/history.o gui/render.o \
+ gui/help.o \
file/file.o file/git-util.o file/git-file.o file/git-hist.o \
gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \
gfx/text.o gfx/misc.o \
@@ -26,11 +27,13 @@ CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
-I. \
`pkg-config --cflags cairo` \
`pkg-config --cflags libgit2` \
- `pkg-config --cflags gtk+-3.0`
+ `pkg-config --cflags gtk+-3.0` \
+ `pkg-config --cflags webkit2gtk-3.0`
LDLIBS = -lm \
`pkg-config --libs cairo` \
`pkg-config --libs libgit2` \
- `pkg-config --libs gtk+-3.0`
+ `pkg-config --libs gtk+-3.0` \
+ `pkg-config --libs webkit2gtk-3.0`
include ../common/Makefile.c-common
@@ -41,6 +44,14 @@ all:: $(NAME)
$(NAME): $(OBJS)
$(CC) -o $(NAME) $(OBJS) $(LDLIBS)
+help.inc: help.html
+ $(BUILD) sed 's/.*/"&"/' $< >$@ || { rm -f $@; exit 1; }
+
+gui/help.c: help.inc
+
+clean::
+ rm -f help.inc
+
#----- Test sheet -------------------------------------------------------------
sch: