chiark / gitweb /
more help widget fixes
[disorder] / disobedience / Makefile.am
index 1f9bd88ecf797c0418a83b9f02dcd3ebeae144aa..9b18ca99e7b68e6a7e534e255fb20d07ecde1ce7 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 \
+                 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,20 @@ 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 $@
+
+help.o: manual.h
+
+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