Commit 87bf5c65 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-12-11 11:23:24 by simonmar]

Hacking in the .pp suffix rule: leave #include directives in place.
parent 2b3bb2f2
......@@ -328,6 +328,11 @@ endif
#-----------------------------------------------------------------------------
# Preprocessor suffix rule
# We're careful to remove cpp-droppings from the generated file; things like
# '#line' pragmas. But we also leave in #include directives, because these
# are likely to be intentional (perhaps the file is going to be CPP'd again -
# this is used by ghc/compiler/parser/Parser.y.pp).
% : %.pp
@$(RM) $@
$(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@
$(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#[^i]/d' > $@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment