X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/69719adc7957b3726e1302653bb8610f4059d493..832fed2e817aad1deb04971a551b7a5204981d87:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index cfed457e96..24f1e181c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -41,6 +41,7 @@ EXTRA_DIST= \ include/surf/surf.h \ include/surf/surf_parse.h \ \ + include/xbt/xbt_portability.h \ include/xbt/context.h \ \ msg/private.h \ @@ -160,13 +161,21 @@ if MAINTAINER_MODE surf/surfxml.c: surf/surfxml.l @LEX@ -o$@ -Psurf_parse_ $^ +if HAVE_FLEXML surf/surfxml.l: surf/surfxml.dtd - cd surf; flexml -b 1000000 -S -L surfxml.dtd ; \ + set -e; cd surf; flexml -b 1000000 -S -L surfxml.dtd ; \ mv surfxml.l surfxml.l.bak ; \ sed 's/surfxml\.h/surf\/surfxml\.h/g' surfxml.l.bak > surfxml.l - include/surf/surfxml.h: surf/surfxml.dtd cd include/surf; flexml -H -L ../../surf/surfxml.dtd +else + +include/surf/surfxml.h surf/surfxml.l: surf/surfxml.dtd + @echo "ERROR: src/surf/surfxml.dtd was modified, but the flexml program was not detected" + @echo "ERROR: Please install it, or if you didn't modify this file, try this:" + @echo "ERROR: touch src/include/surf/surfxml.h src/surf/surfxml.l" + @exit 1 +endif endif libgras_la_SOURCES= $(COMMON_SRC) $(RL_SRC)