Skip to content
Snippets Groups Projects
Commit b8e40cf0 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Stop using flymake

parent 0081956a
No related branches found
No related tags found
No related merge requests found
# Taken from http://www.emacswiki.org/emacs/FlyMake#toc4
get_cs_flags = $(foreach target,$(subst .,_,$(subst -,_,$($(2)))),$($(target)_$(1)FLAGS))
get_cs_all_flags = $(foreach type,$(2),$(call get_cs_flags,$(1),$(type)))
get_cs_compile = $(if $(subst C,,$(1)),$($(1)COMPILE),$(COMPILE))
get_cs_cmdline = $(call get_cs_compile,$(1)) $(call get_cs_all_flags,$(1),check_PROGRAMS bin_PROGRAMS lib_LTLIBRARIES) -fsyntax-only
.PHONY: check-syntax
check-syntax:
s=$(suffix $(CHK_SOURCES));\
if [ "$$s" = ".c" ]; then LANG=C $(call get_cs_cmdline,C) $(CHK_SOURCES);\
elif [ "$$s" = ".cc" ]; then LANG=C $(call get_cs_cmdline,CXX) $(call get_cs_cmdline,CPP) $(CHK_SOURCES);\
else exit 1; fi
...@@ -66,5 +66,3 @@ AUTOMAKE_OPTIONS = foreign 1.5 ...@@ -66,5 +66,3 @@ AUTOMAKE_OPTIONS = foreign 1.5
DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-fufem=$(DUNE_FUFEM_ROOT) --with-dune-tnnmg=$(DUNE_TNNMG_ROOT) CXX="$(CXX)" CC="$(CC)" DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-fufem=$(DUNE_FUFEM_ROOT) --with-dune-tnnmg=$(DUNE_TNNMG_ROOT) CXX="$(CXX)" CC="$(CC)"
include $(top_srcdir)/am/global-rules include $(top_srcdir)/am/global-rules
include $(top_srcdir)/flymake.mk
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment