source: trunk/build/autotools/common.am @ 1924

Last change on this file since 1924 was 1924, checked in by sam, 8 years ago

build: refactor lolfx build rule into common.am.

File size: 673 bytes
Line 
1
2bench: bench-recursive
3bench-recursive:
4        @if test -n "$(SUBDIRS)"; then for subdir in $(SUBDIRS); do \
5            ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) bench) || exit 1; \
6          done; \
7        fi
8
9lolcheck: lolcheck-recursive
10lolcheck-recursive:
11        @if test -n "$(SUBDIRS)"; then for subdir in $(SUBDIRS); do \
12            ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) lolcheck) || exit 1; \
13          done; \
14        fi
15
16.PHONY: lolcheck bench
17
18SUFFIXES = .lolfx
19.lolfx.o:
20        (echo "char const *"; \
21         echo "lolfx_$(notdir $(basename $(filter %.lolfx, $^))) ="; \
22         $(SED) 's/"/\\"/g' $(filter %.lolfx, $^) | $(SED) 's/\([^\r]*\).*/"\1\\n"/'; \
23         echo ";") \
24        | $(CXXCOMPILE) -xc++ -c - -o $@
25
Note: See TracBrowser for help on using the repository browser.