Skip to content

Instantly share code, notes, and snippets.

@ponyatov
Last active August 18, 2016 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponyatov/eed80409cbf357219bda9f88efaf3904 to your computer and use it in GitHub Desktop.
Save ponyatov/eed80409cbf357219bda9f88efaf3904 to your computer and use it in GitHub Desktop.
log.log: src.src ./exe.exe
./exe.exe < $< > $@ && tail $(TAIL) $@
C = cpp.cpp $(OS).cpp ypp.tab.cpp lex.yy.c
H = hpp.hpp $(OS).hpp ypp.tab.hpp meta.hpp
CXXFLAGS += -std=gnu++11
./exe.exe: $(C) $(H)
$(CXX) $(CXXFLAGS) -o $@ $(C) $(L)
ypp.tab.cpp: ypp.ypp
bison $<
lex.yy.c: lpp.lpp
flex $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment