]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.in
command_util.sh: rename proto to header and array to c_file
[paraslash.git] / Makefile.in
index 87569955ddb5c835af72bebb1d82b39902e2f674..aef0c0c95b2b6d4984c586906e84196612a3a292 100644 (file)
@@ -149,37 +149,29 @@ grab_client.cmdline.h grab_client.cmdline.c: grab_client.ggo
                --set-version="$V"  < $<
 
 server_command_list.c: server.cmd server_command_list.h
-       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_util.sh c_file < $< >>$@
 server_command_list.h: server.cmd
-       echo 'extern struct server_command cmd_struct[];' > $@
-       ./command_util.sh proto < $< >> $@
+       ./command_util.sh header < $< >> $@
 
 mysql_selector_command_list.c: mysql_selector.cmd mysql_selector_command_list.h
-       echo '#include "server.h"' > $@
-       echo '#include "user_list.h"' >> $@
-       echo '#include "mysql_selector_command_list.h"' >> $@
-       echo 'struct server_command cmds[] = {' >>$@
-       ./command_util.sh array < $< >>$@
-       echo '{.name = NULL}};' >> $@
+       ./command_util.sh c_file < $< >>$@
 mysql_selector_command_list.h: mysql_selector.cmd
-       echo 'extern struct server_command cmds[];' > $@
-       ./command_util.sh proto < $< >> $@
+       ./command_util.sh header < $< >> $@
 
 random_selector_command_list.c: random_selector.cmd random_selector_command_list.h
-       echo '#include "server.h"' > $@
-       echo '#include "user_list.h"' >> $@
-       echo '#include "random_selector_command_list.h"' >> $@
-       echo 'struct server_command random_selector_cmds[] = {' >>$@
-       ./command_util.sh array < $< >>$@
-       echo '{.name = NULL}};' >> $@
+       ./command_util.sh c_file < $< >>$@
 random_selector_command_list.h: random_selector.cmd
-       echo 'extern struct server_command random_selector_cmds[];' > $@
-       ./command_util.sh proto < $< >> $@
+       ./command_util.sh header < $< >> $@
+
+playlist_selector_command_list.c: playlist_selector.cmd playlist_selector_command_list.h
+       ./command_util.sh c_file < $< >>$@
+playlist_selector_command_list.h: playlist_selector.cmd
+       ./command_util.sh header < $< >> $@
+
+audiod_command_list.c: audiod.cmd audiod_command_list.h
+       ./command_util.sh c_file < $< >>$@
+audiod_command_list.h: audiod.cmd
+       ./command_util.sh header < $< >> $@
 
 ortp_recv.o: ortp_recv.c
        $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<