neovim/test/includes/Makefile
Thomas Wienecke 1f578ec5a1 Add unit tests for mch_[gs]etperm.
Use preprocessor trick proposed by @mahkoh to import 'defines' like
S_IRUSR.
2014-03-15 11:50:22 -03:00

12 lines
177 B
Makefile

POST = $(shell find pre -name '*.h' | sed 's/^pre/post/')
all: $(POST)
$(POST): post/%: pre/%
@echo GEN $*
@mkdir -p $(@D)
@cc -std=c99 -E -P $< -o $@
clean:
rm -rf post