source: trunk/Makefile.frag

Last change on this file was 1473, checked in by moo, 9 months ago

processor: avoid using srcdir dstdir marco for m4

  • Property svn:eol-style set to native
File size: 2.0 KB
RevLine 
[1]1XCACHE_PROC_SRC=$(srcdir)/processor/main.m4
[998]2XCACHE_PROC_OUT=$(builddir)/processor.out.c
3XCACHE_PROC_C=$(builddir)/xc_processor.c.h
4XCACHE_PROC_H=$(builddir)/xc_processor.h
[1]5XCACHE_INCLUDES_SRC=$(srcdir)/includes.c
6XCACHE_INCLUDES_I=$(builddir)/includes.i
[22]7XCACHE_STRUCTINFO_OUT=$(builddir)/structinfo.m4
[1]8
[1015]9$(XCACHE_INCLUDES_I):
[11]10    $(CC) -I. -I$(srcdir) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -E $(XCACHE_INCLUDES_SRC) -o $(XCACHE_INCLUDES_I)
[1]11
[982]12$(XCACHE_STRUCTINFO_OUT): $(XCACHE_INCLUDES_I) $(srcdir)/gen_structinfo.awk
[30]13    @echo $(XCACHE_STRUCTINFO_OUT) is optional if XCache test is not enabled, feel free if it awk failed to produce it
[1473]14    $(XCACHE_AWK) -f $(srcdir)/gen_structinfo.awk < $(XCACHE_INCLUDES_I) > $(XCACHE_STRUCTINFO_OUT).tmp || echo > $(XCACHE_STRUCTINFO_OUT)
15    mv $(XCACHE_STRUCTINFO_OUT).tmp $(XCACHE_STRUCTINFO_OUT)
[1]16
[30]17$(XCACHE_PROC_OUT): $(XCACHE_PROC_SRC) $(XCACHE_STRUCTINFO_OUT) $(XCACHE_PROC_SOURCES)
[1473]18    $(M4) $(XCACHE_ENABLE_TEST) $(XCACHE_STRUCTINFO_OUT) $(XCACHE_PROC_SRC) > $(XCACHE_PROC_OUT).tmp
[642]19    mv $(XCACHE_PROC_OUT).tmp $(XCACHE_PROC_OUT)
[1]20
21$(XCACHE_PROC_H): $(XCACHE_PROC_OUT)
[694]22    $(GREP) "export: " $(XCACHE_PROC_OUT) | $(SED) "s/.*export:\(.*\):export.*/\1/g" > $(XCACHE_PROC_H)
[642]23    -$(XCACHE_INDENT) < $(XCACHE_PROC_H) > $(XCACHE_PROC_H).tmp && mv $(XCACHE_PROC_H).tmp $(XCACHE_PROC_H)
[1]24
25$(XCACHE_PROC_C): $(XCACHE_PROC_OUT) $(XCACHE_PROC_H)
[642]26    cp $(XCACHE_PROC_OUT) $(XCACHE_PROC_C)
27    -$(XCACHE_INDENT) < $(XCACHE_PROC_OUT) > $(XCACHE_PROC_C).tmp && mv $(XCACHE_PROC_C).tmp $(XCACHE_PROC_C)
[1]28
[75]29xcachesvnclean: clean
[998]30    -svn propget svn:ignore . > .svnignore.tmp 2>/dev/null && mv .svnignore.tmp .svnignore
31    cat .svnignore | grep -v devel | grep -v svnignore | grep -v ^Makefile | grep -v ^config.nice | xargs rm -rf
[215]32
[831]33xcachetest: all
[1272]34    $(SED) "s#\\./\\.libs/#$(top_builddir)/\\.libs/#" < $(srcdir)/xcache-test.ini > $(top_builddir)/tmp-php.ini
[1274]35    if test -z "$(TESTS)"; then \
36        TEST_PHP_SRCDIR=$(srcdir) $(srcdir)/run-xcachetest $(TEST_ARGS) -c $(top_builddir)/tmp-php.ini; \
37    fi
[858]38    $(srcdir)/run-xcachetest $(TESTS) $(TEST_ARGS) -c $(top_builddir)/tmp-php.ini
Note: See TracBrowser for help on using the repository browser.