mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
1f578ec5a1
Use preprocessor trick proposed by @mahkoh to import 'defines' like S_IRUSR.
12 lines
177 B
Makefile
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
|