chiark / gitweb /
help menu can now pop up the man page
[disorder] / disobedience / Makefile.am
index 86d1102bff99f38b6794284b2bf4e0ba743eba1b..561f8bb7e6d2755db1da4c3eb0e636be2ced02d4 100644 (file)
@@ -25,7 +25,7 @@ AM_CFLAGS=$(GLIB_CFLAGS) $(GTK_CFLAGS)
 
 disobedience_SOURCES=disobedience.h disobedience.c client.c queue.c    \
                  choose.c misc.c style.h control.c properties.c menu.c \
-                 log.c progress.c login.c rtp.c \
+                 log.c progress.c login.c rtp.c help.c \
                  ../lib/memgc.c
 disobedience_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBGC) $(LIBGCRYPT)
 disobedience_LDFLAGS=$(GTK_LIBS)
@@ -38,8 +38,18 @@ check: check-help
 disobedience.o: style.h
 
 style.h: ${srcdir}/disobedience.rc ${top_srcdir}/scripts/text2c
-       ${top_srcdir}/scripts/text2c style ${srcdir}/disobedience.rc > style.h.tmp
-       mv style.h.tmp style.h
+       ${top_srcdir}/scripts/text2c style ${srcdir}/disobedience.rc > $@.tmp
+       mv $@.tmp $@
+
+manual.html: ../doc/disobedience.1 $(top_srcdir)/scripts/htmlman
+       rm -f $@.new
+       $(top_srcdir)/scripts/htmlman $< >$@.new
+       chmod 444 $@.new
+       mv -f $@.new $@
+
+manual.h: manual.html ${top_srcdir}/scripts/text2c
+       ${top_srcdir}/scripts/text2c manual manual.html > $@.tmp
+       mv $@.tmp $@
 
 EXTRA_DIST=disobedience.rc