make/rules/ordered-mkdir (318 bytes)
1 # use ordered prereqs in a recipe to make a folder 2 # then do stuff in it 3 4 FOLDER := <++> # which we are going to make FIRST 5 FILES := <++> # for AFTER we make the folder 6 7 $(FOLDER)<++> : <++> # do stuff in the new folder 8 <++> 9 10 $(FILES) : | $(FOLDER) 11 # just to call the $(FOLDER) recipe 12 13 $(FOLDER) : 14 @mkdir $(FOLDER)