Just as building is a primary category of labor, so too the making of a tent is a derivative of building, as the Rambam wrote in chapter 10, law 13: "One who makes a permanent tent—this is a derivative of a builder and he is liable... One who demolishes a permanent tent—this is a derivative of a demolisher and he is liable, provided that he intends to improve." Thus far his words. We have already explained this in siman 313, section 3; see there. The liability from the Torah is specifically for a permanent tent, and by rabbinic decree they forbade even a temporary tent, as the Rambam wrote in chapter 22, law 27, and this is his wording: "One who makes a permanent tent—is liable on account of building. Therefore, one may not make a temporary tent in the first instance, nor may one demolish a temporary tent, as a decree lest one make or demolish a permanent tent; and if one made or demolished a temporary tent—he is exempt. And it is permitted to add to a temporary tent on Shabbat. How so?" etc. Thus far his words. This is the generality of the laws of a tent.
And one should not ask: since the making of a tent is a derivative of building, and their liability is equal in stoning and a sin offering, if so, why is one liable for building in any amount at all, as written in siman 313, while regarding a tent we require specifically a permanent tent, and a temporary tent is not like building in any amount? However, this is not a question, for building, even in any amount, at least has the name of building upon it, as it endures for a long time; this is not the case for a tent, for when it is not permanent it only endures for a short while, and the name of a tent is not upon it. And even though we brought there from the Yerushalmi that even building for a short while is building, see there, nevertheless, it must at least be fit to endure for many days, only that he made it for a short while; this is not the case for a temporary tent, which is not fit to endure at all.
כמו שבנין הוי אב מלאכה כמו כן עשיית אהל הוי תולדה דבנין, וכמ"ש הרמב"ם בפרק י' דין י"ג: "העושה אהל קבוע - הרי זה תולדת בונה וחייב … הסותר אהל קבוע - הרי זה תולדת סותר וחייב, והוא שיתכוין לתקן" עכ"ל, וכבר בארנו זה בסימן שי"ג סעיף ג' ע"ש. והחיוב מן התורה הוי דוקא באהל קבוע, ומדרבנן אסרו אפילו אהל עראי, כמ"ש הרמב"ם בפרק כ"ב דין כ"ז וזה לשונו: "העושה אהל קבוע - חייב משום בונה. לפיכך אין עושין אהל עראי לכתחלה ולא סותרין אהל עראי, גזירה שמא יעשה או יסתור אהל קבוע, ואם עשה או סתר אהל עראי – פטור. ומותר להוסיף על אהל עראי בשבת, כיצד וכו' עכ"ל, וזהו כלליות דיני אהל. ואין לשאול כיון דעשיית אהל הוי תולדת בונה, וחיובם שוה סקילה וחטאת, אם כן למה בבונה חייב בכל שהוא כמ"ש בסימן שי"ג, ובאהל בעינן דוקא אהל קבע, ולא תהא אהל עראי כאהל כל שהוא כמו בבנין. האמנם אין זה שאלה, דבנין אפילו כל שהוא מיהו שם בנין עליו, דמתקיים לזמן מרובה, מה שאין כן אהל כשאינו קבוע אינו מתקיים אלא לשעה, ואין שם אהל על זה. ואף על גב דהבאנו שם מירושלמי דגם בנין לשעה הוה בנין ע"ש, מיהו על כל פנים ראוי להתקיים ימים רבים אלא שהוא עשאו לשעה, מה שאין כן אהל עראי אינו ראוי להתקיים כלל.