Template.models.pp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. //
  2. // Template.models.pp
  3. //
  4. // This file defines the Makefiles that will be built to generate
  5. // models (egg, bam models computed from flt, soft, alias,
  6. // etc. sources). Unlike the other Template files, this is not based
  7. // directly on the BUILD_TYPE, but is specifically included when a
  8. // directory specifies a DIR_TYPE of "models". It uses some
  9. // Unix-specific conventions (like forward slashes as a directory
  10. // separator), so it requires either a Unix platform or a Cygwin
  11. // environment.
  12. //
  13. #if $[< $[PPREMAKE_VERSION],0.57]
  14. #error You need at least ppremake version 0.58 to build models.
  15. #endif
  16. // Search for the texattrib dir definition. This will be in the
  17. // models_topdir directory.
  18. #define texattrib_dir $[dir_type $[TEXATTRIB_DIR],models_toplevel]
  19. // Prefix $[TOPDIR]. If it wasn't defined, make a default.
  20. #if $[texattrib_dir]
  21. #define texattrib_dir $[TOPDIR]/$[texattrib_dir]
  22. #else
  23. #define texattrib_dir $[TOPDIR]/src/maps
  24. #endif
  25. #define texattrib_file $[texattrib_dir]/textures.txa
  26. //////////////////////////////////////////////////////////////////////
  27. #if $[eq $[DIR_TYPE], models]
  28. //////////////////////////////////////////////////////////////////////
  29. #define pal_egg_dir pal_egg
  30. #define bam_dir bams
  31. #define soft_maps_dir soft_maps
  32. #defer phase_prefix $[if $[PHASE],phase_$[PHASE]/]
  33. #defer install_model_dir $[install_dir]/$[phase_prefix]$[INSTALL_TO]
  34. #define filter_dirs $[TARGET_DIR(filter_egg optchar_egg)]
  35. #defer source_prefix $[SOURCE_DIR:%=%/]
  36. #define build_models \
  37. $[SOURCES(flt_egg):%.flt=%.egg] \
  38. $[patsubst %.lwo %.LWO,%.egg,$[SOURCES(lwo_egg)]] \
  39. $[forscopes soft_char_egg,$[POLY_MODEL:%=$[EGG_PREFIX]%.egg] $[NURBS_MODEL:%=$[EGG_PREFIX]%.egg]]
  40. #define build_anims \
  41. $[forscopes soft_char_egg,$[ANIMS:%=$[EGG_PREFIX]%$[CHAN_SUFFIX].egg]]
  42. #define build_eggs $[sort $[build_models] $[build_anims]]
  43. #define install_eggs $[sort $[notdir $[SOURCES(install_egg)] $[UNPAL_SOURCES(install_egg)]]]
  44. #define install_other $[sort $[SOURCES(install_audio install_dna install_icons install_misc)]]
  45. #define install_egg_dirs $[sort $[forscopes install_egg,$[install_model_dir]]]
  46. #define installed_eggs $[sort $[forscopes install_egg,$[patsubst %,$[install_model_dir]/%,$[notdir $[SOURCES] $[UNPAL_SOURCES]]]]]
  47. #define installed_bams $[sort $[forscopes install_egg,$[patsubst %.egg,$[install_model_dir]/%.bam,$[notdir $[SOURCES] $[UNPAL_SOURCES]]]]]
  48. #define install_other_dirs $[sort $[forscopes install_audio install_dna install_icons install_misc,$[install_model_dir]]]
  49. #define installed_other $[sort $[forscopes install_audio install_dna install_icons install_misc,$[SOURCES:%=$[install_model_dir]/%]]]
  50. #define pal_egg_targets $[sort $[patsubst %,$[pal_egg_dir]/%,$[notdir $[SOURCES(install_egg)]]]]
  51. #define bam_targets $[install_eggs:%.egg=$[bam_dir]/%.bam]
  52. #output Makefile
  53. #format makefile
  54. #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[SOURCEFILE].
  55. ################################# DO NOT EDIT ###########################
  56. #define all_targets \
  57. Makefile \
  58. $[texattrib_dir] \
  59. $[filter_dirs] \
  60. $[optchar_dirs] \
  61. egg bam
  62. all : $[all_targets]
  63. #define egg_targets \
  64. $[if $[POLY_MODEL(soft_char_egg)] $[NURBS_MODEL(soft_char_egg)],$[soft_maps_dir]] \
  65. $[build_eggs]
  66. egg : $[egg_targets]
  67. #define filter_targets \
  68. $[filter_dirs] \
  69. $[forscopes install_egg,$[patsubst %,$[source_prefix]%,$[notdir $[SOURCES] $[UNPAL_SOURCES]]]]
  70. filter : egg $[filter_targets]
  71. pal : filter $[if $[pal_egg_targets],$[pal_egg_dir]] $[pal_egg_targets]
  72. bam : pal $[if $[bam_targets],$[bam_dir]] $[bam_targets]
  73. #define install_egg_targets \
  74. $[install_egg_dirs] \
  75. $[installed_eggs]
  76. install-egg : $[install_egg_targets]
  77. #define install_bam_targets \
  78. $[install_egg_dirs] \
  79. $[installed_bams]
  80. install-bam : $[install_bam_targets]
  81. #define install_other_targets \
  82. $[install_other_dirs] \
  83. $[installed_other]
  84. install-other : $[install_other_targets]
  85. install : install-other install-bam
  86. uninstall : uninstall-other uninstall-bam uninstall-egg
  87. clean-bam :
  88. #if $[bam_targets]
  89. $[TAB]rm -rf $[bam_dir]
  90. #endif
  91. clean-pal : clean-bam
  92. #if $[pal_egg_targets]
  93. $[TAB]rm -rf $[pal_egg_dir]
  94. #endif
  95. clean : clean-pal
  96. #if $[build_eggs]
  97. $[TAB]rm -f $[build_eggs] $[install_eggs:%.egg=%.pt]
  98. #endif
  99. #if $[POLY_MODEL(soft_char_egg)] $[NURBS_MODEL(soft_char_egg)]
  100. $[TAB]rm -rf $[soft_maps_dir]
  101. #endif
  102. #if $[filter_dirs]
  103. $[TAB]rm -rf $[filter_dirs]
  104. #endif
  105. // We need a rule for each directory we might need to make. This
  106. // loops through the full set of directories and creates a rule to
  107. // make each one, as needed.
  108. #foreach directory $[sort \
  109. $[filter_dirs] \
  110. $[if $[pal_egg_targets],$[pal_egg_dir]] \
  111. $[if $[bam_targets],$[bam_dir]] \
  112. $[if $[POLY_MODEL(soft_char_egg)] $[NURBS_MODEL(soft_char_egg)],$[soft_maps_dir]] \
  113. $[texattrib_dir] \
  114. $[install_egg_dirs] \
  115. $[install_other_dirs] \
  116. ]
  117. $[directory] :
  118. $[TAB]@test -d $[directory] || echo mkdir -p $[directory]
  119. $[TAB]@test -d $[directory] || mkdir -p $[directory]
  120. // Sometimes we need a target to depend on the directory existing, without
  121. // being fooled by the directory's modification times. We use this
  122. // phony timestamp file to achieve that.
  123. $[directory]/stamp :
  124. $[TAB]@test -d $[directory] || echo mkdir -p $[directory]
  125. $[TAB]@test -d $[directory] || mkdir -p $[directory]
  126. $[TAB]@touch $[directory]/stamp
  127. #end directory
  128. // Egg file generation from Flt files.
  129. #forscopes flt_egg
  130. #foreach flt $[SOURCES]
  131. #define target $[flt:%.flt=%.egg]
  132. #define source $[flt]
  133. $[target] : $[source]
  134. $[TAB]flt2egg $[FLT2EGG_OPTS] -o $[target] $[source]
  135. #end flt
  136. #end flt_egg
  137. // Egg file generation from Lightwave files.
  138. #forscopes lwo_egg
  139. #foreach lwo $[SOURCES]
  140. #define target $[patsubst %.lwo %.LWO,%.egg,$[lwo]]
  141. #define source $[lwo]
  142. $[target] : $[source]
  143. $[TAB]lwo2egg $[LWO2EGG_OPTS] -o $[target] $[source]
  144. #end lwo
  145. #end lwo_egg
  146. // Egg character model generation from Soft databases.
  147. #forscopes soft_char_egg
  148. #if $[POLY_MODEL]
  149. #define target $[EGG_PREFIX]$[POLY_MODEL].egg
  150. #define scene $[SCENE_PREFIX]$[MODEL].1-0.dsc
  151. #define source $[DATABASE]/SCENES/$[scene]
  152. $[target] : $[source]
  153. $[TAB]soft2egg $[SOFT2EGG_OPTS] -p -M $[target] -N $[CHAR_NAME] -d $[DATABASE] -s $[scene] -t $[soft_maps_dir]
  154. #endif
  155. #if $[NURBS_MODEL]
  156. #define target $[EGG_PREFIX]$[NURBS_MODEL].egg
  157. #define scene $[SCENE_PREFIX]$[MODEL].1-0.dsc
  158. #define source $[DATABASE]/SCENES/$[scene]
  159. $[target] : $[source]
  160. $[TAB]soft2egg $[SOFT2EGG_OPTS] -n -M $[target] -N $[CHAR_NAME] -d $[DATABASE] -s $[scene] -t $[soft_maps_dir]
  161. #endif
  162. #end soft_char_egg
  163. // Egg animation generation from Soft database.
  164. #forscopes soft_char_egg
  165. #foreach anim $[ANIMS]
  166. #define target $[EGG_PREFIX]$[anim]$[CHAN_SUFFIX].egg
  167. #define scene $[SCENE_PREFIX]$[anim].1-0.dsc
  168. #define source $[DATABASE]/SCENES/$[scene]
  169. #define begin 1
  170. #define end
  171. #if $[$[anim]_frames]
  172. #set begin $[word 1,$[$[anim]_frames]]
  173. #set end $[word 2,$[$[anim]_frames]]
  174. #endif
  175. $[target] : $[source]
  176. $[TAB]soft2egg $[SOFT2EGG_OPTS] -a -A $[target] -N $[CHAR_NAME] -d $[DATABASE] -s $[scene] $[begin:%=-b%] $[end:%=-e%]
  177. #end anim
  178. #end soft_char_egg
  179. // Generic egg filters.
  180. #forscopes filter_egg
  181. #foreach egg $[SOURCES]
  182. #define source $[source_prefix]$[egg]
  183. #define target $[TARGET_DIR]/$[notdir $[egg]]
  184. $[target] : $[source] $[pt] $[TARGET_DIR]/stamp
  185. $[TAB]$[COMMAND]
  186. #end egg
  187. #end filter_egg
  188. // Character optimization.
  189. #forscopes optchar_egg
  190. #define sources $[SOURCES:%=$[source_prefix]%]
  191. #define target $[TARGET_DIR]/$[notdir $[firstword $[SOURCES]]]
  192. // A bunch of rules to make each generated egg file depend on the
  193. // first one.
  194. #foreach egg $[notdir $[wordlist 2,9999,$[SOURCES]]]
  195. $[TARGET_DIR]/$[egg] : $[target] $[TARGET_DIR]/stamp
  196. $[TAB]touch $[TARGET_DIR]/$[egg]
  197. #end egg
  198. // And this is the actual optchar pass.
  199. $[target] : $[sources] $[TARGET_DIR]/stamp
  200. $[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[sources]
  201. #end optchar_egg
  202. // Palettization rules.
  203. #forscopes install_egg
  204. #foreach egg $[SOURCES]
  205. #define pt $[egg:%.egg=$[source_prefix]%.pt]
  206. #define source $[source_prefix]$[egg]
  207. #define target $[pal_egg_dir]/$[notdir $[egg]]
  208. $[target] : $[source] $[pt] $[pal_egg_dir]/stamp
  209. #if $[PHASE]
  210. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dr $[install_dir] -dm $[install_dir]/%g/maps -ds $[install_dir]/shadow_pal -g phase_$[PHASE] -gdir phase_$[PHASE] -o $[target] $[source]
  211. #else
  212. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dr $[install_dir] -dm $[install_dir]/%g/maps -ds $[install_dir]/shadow_pal -o $[target] $[source]
  213. #endif
  214. $[pt] :
  215. $[TAB]touch $[pt]
  216. #end egg
  217. #end install_egg
  218. // Bam file creation.
  219. #forscopes install_egg
  220. #foreach egg $[SOURCES]
  221. #define source $[pal_egg_dir]/$[notdir $[egg]]
  222. #define target $[bam_dir]/$[notdir $[egg:%.egg=%.bam]]
  223. $[target] : $[source] $[bam_dir]/stamp
  224. $[TAB]egg2bam -kp -tp $[install_dir] $[EGG2BAM_OPTS] -o $[target] $[source]
  225. #end egg
  226. #foreach egg $[UNPAL_SOURCES]
  227. #define source $[source_prefix]$[egg]
  228. #define target $[bam_dir]/$[notdir $[egg:%.egg=%.bam]]
  229. $[target] : $[source] $[bam_dir]/stamp
  230. $[TAB]egg2bam -kp -tp $[install_dir] $[EGG2BAM_OPTS] -o $[target] $[source]
  231. #end egg
  232. #end install_egg
  233. // Egg file installation.
  234. #forscopes install_egg
  235. #foreach egg $[notdir $[SOURCES]]
  236. #define local $[egg]
  237. #define sourcedir $[pal_egg_dir]
  238. #define dest $[install_model_dir]
  239. $[dest]/$[local] : $[sourcedir]/$[local]
  240. // cd ./$[sourcedir] && $[INSTALL]
  241. $[TAB]rm -f $[dest]/$[local]
  242. $[TAB]cp $[sourcedir]/$[local] $[dest]
  243. #end egg
  244. #foreach egg $[UNPAL_SOURCES]
  245. #define local $[egg]
  246. #define dest $[install_model_dir]
  247. $[dest]/$[notdir $[local]] : $[source_prefix]$[local]
  248. // $[INSTALL]
  249. $[TAB]rm -f $[dest]/$[notdir $[local]]
  250. $[TAB]cp $[source_prefix]$[local] $[dest]
  251. #end egg
  252. #end install_egg
  253. // Egg file uninstallation.
  254. uninstall-egg :
  255. #forscopes install_egg
  256. #define files $[patsubst %,$[install_model_dir]/%,$[SOURCES] $[UNPAL_SOURCES]]
  257. #if $[files]
  258. $[TAB]rm -f $[files]
  259. #endif
  260. #end install_egg
  261. // Bam file installation.
  262. #forscopes install_egg
  263. #foreach egg $[notdir $[SOURCES] $[UNPAL_SOURCES]]
  264. #define local $[egg:%.egg=%.bam]
  265. #define sourcedir $[bam_dir]
  266. #define dest $[install_model_dir]
  267. $[dest]/$[local] : $[sourcedir]/$[local]
  268. // cd ./$[sourcedir] && $[INSTALL]
  269. $[TAB]rm -f $[dest]/$[local]
  270. $[TAB]cp $[sourcedir]/$[local] $[dest]
  271. #end egg
  272. #end install_egg
  273. // Bam file uninstallation.
  274. uninstall-bam :
  275. #forscopes install_egg
  276. #define files $[patsubst %.egg,$[install_model_dir]/%.bam,$[notdir $[SOURCES] $[UNPAL_SOURCES]]]
  277. #if $[files]
  278. $[TAB]rm -f $[files]
  279. #endif
  280. #end install_egg
  281. // Miscellaneous file installation.
  282. #forscopes install_audio install_dna install_icons install_misc
  283. #foreach file $[SOURCES]
  284. #define local $[file]
  285. #define dest $[install_model_dir]
  286. $[dest]/$[local] : $[local]
  287. // $[INSTALL]
  288. $[TAB]rm -f $[dest]/$[local]
  289. $[TAB]cp $[local] $[dest]
  290. #end file
  291. #end install_audio install_dna install_icons install_misc
  292. // Miscellaneous file uninstallation.
  293. uninstall-other:
  294. #forscopes install_audio install_dna install_icons install_misc
  295. #define files $[patsubst %,$[install_model_dir]/%,$[SOURCES]]
  296. #if $[files]
  297. $[TAB]rm -f $[files]
  298. #endif
  299. #end install_audio install_dna install_icons install_misc
  300. #end Makefile
  301. //////////////////////////////////////////////////////////////////////
  302. #elif $[eq $[DIR_TYPE], models_group]
  303. //////////////////////////////////////////////////////////////////////
  304. // This is a group directory: a directory above a collection of source
  305. // directories, e.g. $DTOOL/src. We don't need to output anything in
  306. // this directory.
  307. //////////////////////////////////////////////////////////////////////
  308. #elif $[eq $[DIR_TYPE], models_toplevel]
  309. //////////////////////////////////////////////////////////////////////
  310. // This is the toplevel directory for a models tree, e.g. $TTMODELS.
  311. // Here we build the root makefile.
  312. #map subdirs
  313. // Iterate through all of our known source files. Each models type
  314. // file gets its corresponding Makefile listed here.
  315. #forscopes */
  316. #if $[eq $[DIR_TYPE], models]
  317. #if $[build_directory]
  318. #addmap subdirs $[DIRNAME]
  319. #endif
  320. #endif
  321. #end */
  322. #output Makefile
  323. #format makefile
  324. #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[SOURCEFILE].
  325. ################################# DO NOT EDIT ###########################
  326. all : egg pal repal $[subdirs]
  327. egg : $[subdirs:%=egg-%]
  328. pal : $[subdirs:%=pal-%]
  329. bam : $[subdirs:%=bam-%]
  330. clean-bam : $[subdirs:%=clean-bam-%]
  331. clean-pal : $[subdirs:%=clean-pal-%]
  332. clean : $[subdirs:%=clean-%]
  333. cleanall : $[subdirs:%=cleanall-%]
  334. install-egg : egg pal repal $[subdirs:%=install-egg-%]
  335. install-bam : egg pal repal $[subdirs:%=install-bam-%]
  336. install-other : $[subdirs:%=install-other-%]
  337. install : egg pal repal $[subdirs:%=install-%]
  338. uninstall-egg : $[subdirs:%=uninstall-egg-%]
  339. uninstall-bam : $[subdirs:%=uninstall-bam-%]
  340. uninstall-other : $[subdirs:%=uninstall-other-%]
  341. uninstall : $[subdirs:%=uninstall-%]
  342. #
  343. # opt-pal : reorder and resize the palettes to be as optimal as
  344. # possible. This forces a rebuild of all the egg files.
  345. #
  346. opt-pal : pal do-opt-pal install
  347. optimize-palettes : opt-pal
  348. do-opt-pal :
  349. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dm $[install_dir]/%g/maps -opt -egg
  350. #
  351. # repal : reexamine the textures.txa file and do whatever needs to be
  352. # done to bring everything up to sync with it. Also make sure all egg
  353. # files are up-to-date.
  354. #
  355. repal :
  356. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dm $[install_dir]/%g/maps -all -egg
  357. re-pal : repal
  358. #
  359. # fix-pal : something has gone wrong with the palettes; rebuild all
  360. # palette images to fix it.
  361. #
  362. fix-pal :
  363. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dm $[install_dir]/%g/maps -redo -all -egg
  364. #
  365. # undo-pal : blow away all the palettization information and start fresh.
  366. #
  367. undo-pal : clean-pal
  368. $[TAB]rm -f $[texattrib_file:%.txa=%.boo]
  369. #
  370. # pi : report the palettization information to standard output for the
  371. # user's perusal.
  372. #
  373. pi :
  374. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dm $[install_dir]/%g/maps -pi
  375. #
  376. # pal-stats : report palettization statistics to standard output for the
  377. # user's perusal.
  378. #
  379. pal-stats :
  380. $[TAB]egg-palettize $[PALETTIZE_OPTS] -a $[texattrib_file] -dm $[install_dir]/%g/maps -s
  381. stats-pal : pal-stats
  382. // Somehow, something in the cttools confuses some shells, so that
  383. // when we are attached, 'cd foo' doesn't work, but 'cd ./foo' does.
  384. // Weird. We get around this by putting a ./ in front of each cd
  385. // target below.
  386. #formap dirname subdirs
  387. $[dirname] : $[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]
  388. $[TAB]cd ./$[RELDIR] && $(MAKE) all
  389. #end dirname
  390. #formap dirname subdirs
  391. egg-$[dirname] :
  392. $[TAB]cd ./$[RELDIR] && $(MAKE) egg
  393. #end dirname
  394. #formap dirname subdirs
  395. bam-$[dirname] :
  396. $[TAB]cd ./$[RELDIR] && $(MAKE) bam
  397. #end dirname
  398. #formap dirname subdirs
  399. pal-$[dirname] :
  400. $[TAB]cd ./$[RELDIR] && $(MAKE) pal
  401. #end dirname
  402. #formap dirname subdirs
  403. clean-bam-$[dirname] :
  404. $[TAB]cd ./$[RELDIR] && $(MAKE) clean-bam
  405. #end dirname
  406. #formap dirname subdirs
  407. clean-pal-$[dirname] :
  408. $[TAB]cd ./$[RELDIR] && $(MAKE) clean-pal
  409. #end dirname
  410. #formap dirname subdirs
  411. clean-$[dirname] :
  412. $[TAB]cd ./$[RELDIR] && $(MAKE) clean
  413. #end dirname
  414. #formap dirname subdirs
  415. cleanall-$[dirname] :
  416. $[TAB]cd ./$[RELDIR] && $(MAKE) cleanall
  417. #end dirname
  418. #formap dirname subdirs
  419. install-egg-$[dirname] :
  420. $[TAB]cd ./$[RELDIR] && $(MAKE) install-egg
  421. #end dirname
  422. #formap dirname subdirs
  423. install-bam-$[dirname] :
  424. $[TAB]cd ./$[RELDIR] && $(MAKE) install-bam
  425. #end dirname
  426. #formap dirname subdirs
  427. install-other-$[dirname] :
  428. $[TAB]cd ./$[RELDIR] && $(MAKE) install-other
  429. #end dirname
  430. #formap dirname subdirs
  431. install-$[dirname] :
  432. $[TAB]cd ./$[RELDIR] && $(MAKE) install
  433. #end dirname
  434. #formap dirname subdirs
  435. uninstall-egg-$[dirname] :
  436. $[TAB]cd ./$[RELDIR] && $(MAKE) uninstall-egg
  437. #end dirname
  438. #formap dirname subdirs
  439. uninstall-bam-$[dirname] :
  440. $[TAB]cd ./$[RELDIR] && $(MAKE) uninstall-bam
  441. #end dirname
  442. #formap dirname subdirs
  443. uninstall-other-$[dirname] :
  444. $[TAB]cd ./$[RELDIR] && $(MAKE) uninstall-other
  445. #end dirname
  446. #formap dirname subdirs
  447. uninstall-$[dirname] :
  448. $[TAB]cd ./$[RELDIR] && $(MAKE) uninstall
  449. #end dirname
  450. #end Makefile
  451. //////////////////////////////////////////////////////////////////////
  452. #endif // DIR_TYPE