~までだ/~までのことだ
(If not,) I'll simply …; I only did … (nothing more)
N1
V (dictionary form) + までだ (resolve) / V-ta + までだ (only reason)
Vる+までだ expresses resolve: if this doesn't work, I'll simply do something else, without hesitation (だめなら{別|べつ}の{方法|ほうほう}を{探|さが}すまでだ). Vた+までだ explains that one did something for a simple reason, with no hidden intention ({当然|とうぜん}のことをしたまでです). ~までのことだ means the same with more emphasis. It is fairly formal and used in polite speech and writing. Compare ~しかない (N4) for resolve and ~にすぎない (N2) for 'merely'.
Examples
今年の試験に落ちたら、来年また受けるまでだ。
If I fail this year's exam, I'll simply take it again next year.
お礼なんていりません。困っている人を助けたまでです。
No need to thank me. I only helped someone in trouble.
電車が動かないなら、歩いて帰るまでのことだ。
If the trains aren't running, I'll just walk home.
Exercises
1.会社が認めてくれないなら、自分で起業する 。
2.別に怒っているわけではありません。規則を説明した 。