]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.in
Makefile.in: Kill Changelog target
[paraslash.git] / Makefile.in
index e05d75b90ff944a2e3d3ec0b45944e7a1765f295..7ffc1184bc91c78697e7af1a520697030bfac53e 100644 (file)
@@ -1,4 +1,4 @@
-COPYRIGHT = Copyright (c) 1997-2006 by Andre Noll
+COPYRIGHT = Copyright (c) 1997-2007 by Andre Noll
 DISCLAIMER = This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details.
 
 prefix = @prefix@
@@ -85,7 +85,7 @@ tarball_delete = web versions pics/screenshots pics/web .changelog_before_cvs \
 tarball_delete := $(patsubst %,$(tarball_pfx)/%,$(tarball_delete))
 tarball_add := $(gengetopts_c) $(gengetopts_h) $(autocrap)
 
-.PHONY: clean distclean maintainer-clean install html www tags ChangeLog doxygen gruta
+.PHONY: clean distclean maintainer-clean install html www tags doxygen gruta
 all: $(BINARIES)
 www: $(gen_html) $(gruta_html) $(web_pics) $(web_misc) $(shots) tags doxygen doc
 gruta: $(gen_html) $(gruta_html)
@@ -148,17 +148,29 @@ grab_client.cmdline.h grab_client.cmdline.c: grab_client.ggo
                --set-package="para_$(subst .cmdline,,$(*F))" \
                --set-version="$V"  < $<
 
-server_command_list.c: server.cmd
-       echo '#include "server.h"' > $@
-       echo '#include "user_list.h"' >> $@
-       echo '#include "server_command_list.h"' >> $@
-       echo 'struct server_command cmd_struct[] = {' >>$@
-       ./command_util.sh array < $< >>$@
-       echo '{.name = NULL}};' >> $@
+%_command_list.c %_command_list.h: %.cmd
+       ./command_util.sh c < $< >$@
+       ./command_util.sh h < $< >$(@:%.c=%.h)
+
+%_command_list.man: %.cmd
+       ./command_util.sh man < $< > $@
+
+server_command_lists = server_command_list.man random_selector_command_list.man \
+       playlist_selector_command_list.man mysql_selector_command_list.man
+man/man1/para_server.1: para_server $(server_command_lists)
+       opts="-N `for i in $(server_command_lists); do echo "-i $$i"; done`"; \
+       help2man $$opts ./para_server > $@
+
+man/man1/para_audiod.1: para_audiod audiod_command_list.man
+       help2man -N -i audiod_command_list.man ./para_audiod > $@
+
+man/man1/%.1: %
+       help2man -N $< > $@
+
+man/html/%.html: man/man1/%.1
+       man2html $< > $@
+
 
-server_command_list.h: server.cmd
-       echo 'extern struct server_command cmd_struct[];' > $@
-       ./command_util.sh proto < $< >> $@
 
 ortp_recv.o: ortp_recv.c
        $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<
@@ -237,8 +249,7 @@ para_krell.so: $(krell_objs)
        $(CC) -Wall -fPIC @GTK_CFLAGS@ krell.o -o $@ @GTK_LIBS@ -shared
 
 clean:
-       rm -f *.o $(BINARIES) *_command_list.*
-
+       rm -f *.o $(BINARIES)
 distclean: clean
        rm -f Makefile autoscan.log config.status config.log && \
        rm -rf web/sync/* autom4te.cache aclocal.m4
@@ -246,9 +257,11 @@ distclean: clean
 
 maintainer-clean: distclean
        rm -f $(gengetopts_c) $(gengetopts_h) *.tar.bz2 \
-               $(grutatxt_html) ChangeLog* config.h configure \
+               $(grutatxt_html) config.h configure \
                config.h.in skencil/*.pdf skencil/*.ps
        rm -rf doc
+       rm -f *_command_list.* *.man man/man1/* man/html/*
+
 
 install: all
        umask 022 && \
@@ -274,8 +287,6 @@ install: all
        rm -f $(tarball_pfx).tar
        ls -l $(tarball_pfx).tar.bz2
 
-ChangeLog:
-       para_util changelog > $@
 web/%.in.html: %
        grutatxt -nb  < $< > $@
 tags: