]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.in
make the playlist selector use command_util.sh
[paraslash.git] / Makefile.in
index 87569955ddb5c835af72bebb1d82b39902e2f674..e416d53e261a01dc13f85d6218561b3d37a33c81 100644 (file)
@@ -181,6 +181,17 @@ random_selector_command_list.h: random_selector.cmd
        echo 'extern struct server_command random_selector_cmds[];' > $@
        ./command_util.sh proto < $< >> $@
 
+playlist_selector_command_list.c: playlist_selector.cmd playlist_selector_command_list.h
+       echo '#include "server.h"' > $@
+       echo '#include "user_list.h"' >> $@
+       echo '#include "playlist_selector_command_list.h"' >> $@
+       echo 'struct server_command playlist_selector_cmds[] = {' >>$@
+       ./command_util.sh array < $< >>$@
+       echo '{.name = NULL}};' >> $@
+playlist_selector_command_list.h: playlist_selector.cmd
+       echo 'extern struct server_command playlist_selector_cmds[];' > $@
+       ./command_util.sh proto < $< >> $@
+
 ortp_recv.o: ortp_recv.c
        $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<