code_junkie

Make source with two targets

Nov 10th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. build: foo.h foo.cpp
  2. g++ $(CFLAGS) foo.cpp -o $(LFLAGS) foo
  3.  
  4. foo.h foo.cpp: foo.lzz
  5. lzz foo.lzz
  6.  
  7. %.cpp %.h: %.lzz
  8. lzz $(input)
Add Comment
Please, Sign In to add comment