[gperf] Renamed products to .h so they aren't built if listed in SOURCES

This commit is contained in:
Scott Shambarger 2016-12-27 15:08:08 -08:00
parent d7f8dea0ec
commit b38bccc458
6 changed files with 11 additions and 18 deletions

13
src/.gitignore vendored
View File

@ -3,13 +3,10 @@ forked-daapd
*.tokens
*Lexer.[ch]
*Parser.[ch]
DAAP2SQL.[ch]
RSP2SQL.[ch]
SMARTPL2SQL.[ch]
*2SQL.[ch]
*.u
daap_query_hash.c
rsp_query_hash.c
dacp_prop_hash.c
dmap_fields_hash.c
daap_query_hash.h
rsp_query_hash.h
dacp_prop_hash.h
dmap_fields_hash.h

View File

@ -44,7 +44,7 @@ options {
};
/* gperf static hash, daap_query.gperf */
#include "daap_query_hash.c"
#include "daap_query_hash.h"
}
query returns [ pANTLR3_STRING result ]

View File

@ -39,11 +39,7 @@ GPERF_FILES = \
dacp_prop.gperf \
dmap_fields.gperf
GPERF_PRODUCTS = \
daap_query_hash.c \
rsp_query_hash.c \
dacp_prop_hash.c \
dmap_fields_hash.c
GPERF_PRODUCTS = $(GPERF_FILES:.gperf=_hash.h)
ANTLR_GRAMMARS = \
RSP.g RSP2SQL.g \
@ -158,7 +154,7 @@ CLEANFILES = \
# gperf construction rules
%_hash.c: %.gperf
%_hash.h: %.gperf
if $(GPERF) $< > $@.tmp; then \
mv $@.tmp $@; \
elif $(GPERF) --version >/dev/null 2>&1; then \

View File

@ -50,7 +50,7 @@ options {
};
/* gperf static hash, rsp_query.gperf */
#include "rsp_query_hash.c"
#include "rsp_query_hash.h"
}
query returns [ pANTLR3_STRING result ]

View File

@ -31,7 +31,7 @@
/* gperf static hash, dmap_fields.gperf */
#include "dmap_fields_hash.c"
#include "dmap_fields_hash.h"
const struct dmap_field *

View File

@ -136,7 +136,7 @@ dacp_propset_userrating(const char *value, struct evkeyvalq *query);
/* gperf static hash, dacp_prop.gperf */
#include "dacp_prop_hash.c"
#include "dacp_prop_hash.h"
/* Play status update */