Simplified snc rules.

This commit is contained in:
Janet B. Anderson
2001-02-20 15:27:17 +00:00
parent 0eb794b5fd
commit 66900cefc9

View File

@@ -232,13 +232,15 @@ endif
$(MV) lex.yy.c $@
#state notation language rule
%.cpp: ../%.st
@echo "preprocessing $*.st"
@$(RM) $*.i
$(CPP) $(CPPSNCFLAGS) $(INCLUDES) $< > $*.i
@echo "converting $*.i"
%.cpp: %.i
@echo "converting $<"
@$(RM) $@
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.i -o $@
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $< -o $@
%.i: ../%.st
@echo "preprocessing $<"
@$(RM) $@
$(CPP) $(CPPSNCFLAGS) $(INCLUDES) $< > $@
%.cpp: ../%.stt
@echo "converting $< "
@@ -390,7 +392,7 @@ $(INSTALL_TEMPLATES)/$(TEMPLATES_DIR)/%: %
@echo "Installing $@"
@$(INSTALL) -d -m 644 $< $(@D)
.PRECIOUS: %.o %.c %.nm %_ctdt.c
.PRECIOUS: %.o %.c %.nm %_ctdt.c %.i
.PRECIOUS: $(COMMON_INC)
-include $(CONFIG)/RULES.Db