From aad1351ab111372232cbdd249a12a194b9884f7b Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 23 Jan 2023 17:35:51 -0300 Subject: build: auto-generate syntax files Changes: * Generate firejail.vim from firejail.vim.in * Generate firejail-profile.lang from firejail-profile.lang.in * Update the manual syntax file steps on the new command checklist on CONTRIBUTING.md to use `make syntax` instead Relates to #2679 #5502 #5577 #5612. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index df06aed87..aa55c376e 100644 --- a/Makefile +++ b/Makefile @@ -134,6 +134,16 @@ contrib/syntax/files/example: contrib/syntax/files/example.in $(SYNTAX_LISTS) @printf 'Generating %s from %s\n' $@ $< @$(edit_syntax_file) $< >$@ +# gtksourceview language-specs +contrib/syntax/files/%.lang: contrib/syntax/files/%.lang.in $(SYNTAX_LISTS) + @printf 'Generating %s from %s\n' $@ $< + @$(edit_syntax_file) $< >$@ + +# vim syntax files +contrib/syntax/files/%.vim: contrib/syntax/files/%.vim.in $(SYNTAX_LISTS) + @printf 'Generating %s from %s\n' $@ $< + @$(edit_syntax_file) $< >$@ + .PHONY: clean clean: for dir in $$(dirname $(ALL_ITEMS)) $(MYDIRS); do \ -- cgit v1.2.3-70-g09d2