build.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. TOPDIR=$(shell pwd)
  4. export TOPDIR
  5. ifneq ($(shell umask 2>/dev/null | sed 's/0*022/OK/'),OK)
  6. $(error your umask is not 022)
  7. endif
  8. CONFIG_CONFIG_IN = Config.in
  9. CONFIG = config
  10. DEFCONFIG= ADK_DEVELSYSTEM=n \
  11. ADK_DEBUG=n \
  12. ADK_STATIC=n \
  13. ADK_MAKE_PARALLEL=n \
  14. ADK_FORCE_PARALLEL=n \
  15. ADK_PACKAGE_GRUB=n \
  16. ADK_PACKAGE_GCC=n \
  17. ADK_PACKAGE_AUFS2_UTIL=n \
  18. ADK_PACKAGE_BASE_FILES=y \
  19. ADK_COMPILE_HEIMDAL=n \
  20. ADK_PACKAGE_HEIMDAL_PKINIT=n \
  21. ADK_PACKAGE_HEIMDAL_SERVER=n \
  22. ADK_PACKAGE_LIBHEIMDAL=n \
  23. ADK_PACKAGE_LIBHEIMDAL_CLIENT=n \
  24. BUSYBOX_BBCONFIG=n \
  25. BUSYBOX_SELINUX=n \
  26. BUSYBOX_MODPROBE_SMALL=n \
  27. BUSYBOX_EJECT=n \
  28. BUSYBOX_BUILD_LIBBUSYBOX=n \
  29. BUSYBOX_FEATURE_2_4_MODULES=n \
  30. BUSYBOX_LOCALE_SUPPORT=n \
  31. BUSYBOX_FEATURE_PREFER_APPLETS=n \
  32. BUSYBOX_FEATURE_SUID=n \
  33. BUSYBOX_SELINUXENABLED=n \
  34. BUSYBOX_FEATURE_INSTALLER=n \
  35. BUSYBOX_PAM=n \
  36. BUSYBOX_FLASH_LOCK=n \
  37. BUSYBOX_FLASH_UNLOCK=n \
  38. BUSYBOX_FLASH_ERASEALL=n \
  39. BUSYBOX_PIE=n \
  40. BUSYBOX_TASKSET=n \
  41. BUSYBOX_DEBUG=n \
  42. BUSYBOX_NOMMU=n \
  43. BUSYBOX_WERROR=n \
  44. BUSYBOX_STATIC=n \
  45. BUSYBOX_FEATURE_AIX_LABEL=n \
  46. BUSYBOX_FEATURE_SUN_LABEL=n \
  47. BUSYBOX_FEATURE_OSF_LABEL=n \
  48. BUSYBOX_FEATURE_SGI_LABEL=n \
  49. ADK_KERNEL_RT2X00_DEBUG=n \
  50. ADK_KERNEL_ATH5K_DEBUG=n \
  51. ADK_KERNEL_DEBUG_WITH_KGDB=n
  52. noconfig_targets:= menuconfig \
  53. _config \
  54. _mconfig \
  55. distclean \
  56. defconfig \
  57. tags
  58. POSTCONFIG= -@ \
  59. if [ -f .config.old ];then \
  60. if [ -f .busyboxcfg ];then \
  61. rm .busyboxcfg; \
  62. fi; \
  63. fi
  64. # Pull in the user's configuration file
  65. ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
  66. -include $(TOPDIR)/.config
  67. endif
  68. ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
  69. include $(TOPDIR)/rules.mk
  70. include ${TOPDIR}/mk/split-cfg.mk
  71. all: world
  72. ${TOPDIR}/package/Depends.mk: ${TOPDIR}/.config $(wildcard ${TOPDIR}/package/*/Makefile)
  73. mksh ${TOPDIR}/package/depmaker
  74. .NOTPARALLEL:
  75. .PHONY: all world clean cleantarget cleandir distclean image_clean
  76. world: $(DISTDIR) $(BUILD_DIR) $(TARGET_DIR) $(PACKAGE_DIR) ${TOPDIR}/.ADK_HAVE_DOT_CONFIG
  77. ${BASH} ${TOPDIR}/scripts/scan-pkgs.sh
  78. ifeq ($(ADK_NATIVE),y)
  79. $(MAKE) -f mk/build.mk toolchain/kernel-headers-prepare target/config-prepare target/compile package/compile root_clean package/install package_index target/install
  80. else
  81. ifeq ($(ADK_TOOLCHAIN_ONLY),y)
  82. $(MAKE) -f mk/build.mk toolchain/install package/compile
  83. else
  84. $(MAKE) -f mk/build.mk toolchain/install target/config-prepare target/compile package/compile root_clean package/install package_index target/install
  85. endif
  86. endif
  87. package_index:
  88. ifeq ($(ADK_TARGET_PACKAGE_IPKG),y)
  89. -cd ${PACKAGE_DIR} && \
  90. ${BASH} ${TOPDIR}/scripts/ipkg-make-index.sh . >Packages
  91. endif
  92. $(DISTDIR):
  93. mkdir -p $(DISTDIR)
  94. $(BUILD_DIR):
  95. mkdir -p $(BUILD_DIR)
  96. $(TARGET_DIR):
  97. mkdir -p $(TARGET_DIR)
  98. $(PACKAGE_DIR):
  99. mkdir -p ${PACKAGE_DIR}/.stamps
  100. ${STAGING_DIR} ${STAGING_DIR}/etc ${STAGING_TOOLS}:
  101. mkdir -p ${STAGING_DIR}/{bin,etc,lib,usr/include} \
  102. ${STAGING_TOOLS}/{bin,lib}
  103. ${STAGING_DIR}/etc/ipkg.conf: ${STAGING_DIR}/etc
  104. ifeq ($(ADK_TARGET_PACKAGE_IPKG),y)
  105. echo "dest root /" >${STAGING_DIR}/etc/ipkg.conf
  106. echo "option offline_root ${TARGET_DIR}" >>$(STAGING_DIR)/etc/ipkg.conf
  107. endif
  108. package/%: ${TOPDIR}/.ADK_HAVE_DOT_CONFIG ${STAGING_DIR}/etc/ipkg.conf ${TOPDIR}/package/Depends.mk
  109. $(MAKE) -C package $(patsubst package/%,%,$@)
  110. target/%: ${TOPDIR}/.ADK_HAVE_DOT_CONFIG
  111. $(MAKE) -C target $(patsubst target/%,%,$@)
  112. toolchain/%: ${STAGING_DIR}
  113. $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@)
  114. image:
  115. $(MAKE) -C target image
  116. switch:
  117. echo "Saving configuration for target: ${ADK_TARGET}"
  118. cp -p .config .config.${ADK_TARGET}
  119. if [ -f .config.old ];then cp -p .config.old .config.old.${ADK_TARGET};fi
  120. if [ -f .config.split ];then cp -p .config.split .config.split.${ADK_TARGET};fi
  121. if [ -f .config.${TARGET} ];then cp -p .config.${TARGET} .config; \
  122. cp -p .config.old.${TARGET} .config.old; \
  123. cp -p .config.split.${TARGET} .config.split; \
  124. echo "Setting configuration to target: ${TARGET}"; \
  125. else echo "No old target config found";mv .config .config.bak; make TARGET=${TARGET};fi
  126. kernelconfig:
  127. cp $(TOPDIR)/target/$(ADK_TARGET)/kernel.config $(BUILD_DIR)/linux/.config
  128. $(MAKE) -C $(BUILD_DIR)/linux/ ARCH=$(ARCH) menuconfig
  129. cp $(BUILD_DIR)/linux/.config $(TOPDIR)/target/$(ADK_TARGET)/kernel.config
  130. # create a new package from package/.template
  131. newpackage:
  132. @echo "Creating new package $(PKG)"
  133. $(CP) $(TOPDIR)/package/.template $(TOPDIR)/package/$(PKG)
  134. pkg=$$(echo $(PKG)|tr '[:lower:]-' '[:upper:]_'); \
  135. $(SED) "s#@UPKG@#$$pkg#" $(TOPDIR)/package/$(PKG)/Makefile
  136. $(SED) 's#@PKG@#$(PKG)#' $(TOPDIR)/package/$(PKG)/Makefile
  137. $(SED) 's#@VER@#$(VER)#' $(TOPDIR)/package/$(PKG)/Makefile
  138. @echo "Edit package/$(PKG)/Makefile to complete"
  139. @echo "Do not forget to add package to package/Config.in"
  140. #############################################################
  141. #
  142. # Cleanup and misc junk
  143. #
  144. #############################################################
  145. root_clean:
  146. @$(TRACE) root_clean
  147. rm -rf $(TARGET_DIR)
  148. mkdir -p $(TARGET_DIR)
  149. # Do a per-package clean here, too. This way stale headers and
  150. # libraries from cross_*/target/ get wiped away, which keeps
  151. # future package build's configure scripts from returning false
  152. # dependencies information.
  153. clean:
  154. @$(TRACE) clean
  155. $(MAKE) -C $(CONFIG) clean
  156. for d in ${STAGING_PARENT}; do \
  157. for f in $$(ls $$d/pkg/[a-z]* 2>/dev/null); do \
  158. while read file ; do \
  159. rm $$d/target/$$file 2>/dev/null; \
  160. done < $$f ; \
  161. rm $$f ; \
  162. done \
  163. done
  164. rm -rf $(BUILD_DIR) $(BIN_DIR) $(TARGET_DIR) \
  165. ${TOPDIR}/.cfg_${ADK_TARGET}_${ADK_LIBC} \
  166. ${TOPDIR}/package/pkglist.d
  167. rm -f ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk
  168. cleankernel:
  169. @$(TRACE) cleankernel
  170. rm -rf $(TOOLCHAIN_BUILD_DIR)/linux* $(BUILD_DIR)/linux
  171. cleandir:
  172. @$(TRACE) cleandir
  173. @$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
  174. rm -rf $(BUILD_DIR_PFX) $(BIN_DIR_PFX) $(TARGET_DIR_PFX) \
  175. ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
  176. rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) \
  177. $(TOOLS_BUILD_DIR)
  178. rm -f .menu .tmpconfig.h ${TOPDIR}/package/*/info.mk \
  179. ${TOPDIR}/package/Depends.mk ${TOPDIR}/prereq.mk \
  180. .busyboxcfg
  181. cleantarget:
  182. @$(TRACE) cleantarget
  183. @$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
  184. rm -rf $(BUILD_DIR) $(BIN_DIR) $(TARGET_DIR) \
  185. ${TOPDIR}/.cfg_${ADK_TARGET}_${ADK_LIBC}
  186. rm -rf $(TOOLCHAIN_BUILD_DIR) $(STAGING_PARENT)
  187. rm -f .tmpconfig.h ${TOPDIR}/package/*/info.mk \
  188. .busyboxcfg all.config .defconfig
  189. distclean:
  190. @$(TRACE) distclean
  191. @$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
  192. @rm -rf $(BUILD_DIR_PFX) $(BIN_DIR_PFX) $(TARGET_DIR_PFX) $(DISTDIR) \
  193. ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
  194. @rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) \
  195. $(TOOLS_BUILD_DIR)
  196. @rm -f .config* .defconfig .tmpconfig.h all.config ${TOPDIR}/prereq.mk \
  197. .menu ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk \
  198. .busyboxcfg .ADK_HAVE_DOT_CONFIG
  199. else # ! ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
  200. ifeq ($(filter-out distclean,${MAKECMDGOALS}),)
  201. include ${TOPDIR}/mk/vars.mk
  202. else
  203. include $(TOPDIR)/prereq.mk
  204. export BASH HOSTCC HOSTCFLAGS MAKE LANGUAGE LC_ALL OStype PATH
  205. endif
  206. all: menuconfig
  207. @echo "Start the build with \"make\" or with \"make v\" to be verbose"
  208. # configuration
  209. # ---------------------------------------------------------------------------
  210. # force entering the subdir, as dependency checking is done there
  211. .PHONY: $(CONFIG)/conf $(CONFIG)/mconf
  212. $(CONFIG)/conf:
  213. @$(MAKE) -C $(CONFIG) conf
  214. $(CONFIG)/mconf:
  215. @$(MAKE) -C $(CONFIG)
  216. defconfig: .menu $(CONFIG)/conf
  217. ifeq (${OStype},Linux)
  218. @echo ADK_HOST_LINUX=y > $(TOPDIR)/.defconfig
  219. endif
  220. ifeq (${OStype},FreeBSD)
  221. @echo ADK_HOST_FREEBSD=y > $(TOPDIR)/.defconfig
  222. endif
  223. ifeq (${OStype},MirBSD)
  224. @echo ADK_HOST_MIRBSD=y > $(TOPDIR)/.defconfig
  225. endif
  226. ifeq (${OStype},OpenBSD)
  227. @echo ADK_HOST_OPENBSD=y > $(TOPDIR)/.defconfig
  228. endif
  229. ifeq (${OStype},NetBSD)
  230. @echo ADK_HOST_NETBSD=y > $(TOPDIR)/.defconfig
  231. endif
  232. ifneq (,$(filter CYGWIN%,${OStype}))
  233. @echo ADK_HOST_CYGWIN=y > $(TOPDIR)/.defconfig
  234. endif
  235. @if [ ! -z "$(TARGET)" ];then \
  236. grep "^config" target/Config.in \
  237. |grep -i "$(TARGET)"\$$ \
  238. |sed -e "s#^config \(.*\)#\1=y#" \
  239. >> $(TOPDIR)/.defconfig; \
  240. for symbol in ${DEFCONFIG}; do \
  241. echo $$symbol >> $(TOPDIR)/.defconfig; \
  242. done; \
  243. fi
  244. @if [ ! -z "$(FS)" ];then \
  245. grep "^config" target/Config.in \
  246. |grep -i "$(FS)" \
  247. |sed -e "s#^config \(.*\)#\1=y#" \
  248. >> $(TOPDIR)/.defconfig; \
  249. fi
  250. @if [ ! -z "$(PKG)" ];then \
  251. grep "^config" target/Config.in \
  252. |grep -i "$(PKG)" \
  253. |sed -e "s#^config \(.*\)#\1=y#" \
  254. >> $(TOPDIR)/.defconfig; \
  255. fi
  256. @if [ ! -z "$(LIBC)" ];then \
  257. grep "^config" target/Config.in \
  258. |grep -i "$(LIBC)" \
  259. |sed -e "s#^config \(.*\)#\1=y#" \
  260. >> $(TOPDIR)/.defconfig; \
  261. fi
  262. ifneq (,$(filter %_qemu,${TARGET}))
  263. @echo ADK_LINUX_QEMU=y >> $(TOPDIR)/.defconfig
  264. endif
  265. ifneq (,$(filter %_toolchain,${TARGET}))
  266. @echo ADK_LINUX_TOOLCHAIN=y >> $(TOPDIR)/.defconfig
  267. endif
  268. ifneq (,$(filter rescue%,${TARGET}))
  269. @echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/.defconfig
  270. endif
  271. ifneq (,$(filter rb%,${TARGET}))
  272. @echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/.defconfig
  273. endif
  274. ifneq (,$(filter alix%,${TARGET}))
  275. @echo ADK_LINUX_ALIX=y >> $(TOPDIR)/.defconfig
  276. endif
  277. ifneq (,$(filter wrap%,${TARGET}))
  278. @echo ADK_LINUX_ALIX=y >> $(TOPDIR)/.defconfig
  279. endif
  280. @if [ ! -z "$(TARGET)" ];then \
  281. $(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
  282. fi
  283. modconfig:
  284. ifeq (${OStype},Linux)
  285. @echo ADK_HOST_LINUX=y > $(TOPDIR)/all.config
  286. endif
  287. ifeq (${OStype},FreeBSD)
  288. @echo ADK_HOST_FREEBSD=y > $(TOPDIR)/all.config
  289. endif
  290. ifeq (${OStype},MirBSD)
  291. @echo ADK_HOST_MIRBSD=y > $(TOPDIR)/all.config
  292. endif
  293. ifeq (${OStype},OpenBSD)
  294. @echo ADK_HOST_OPENBSD=y > $(TOPDIR)/all.config
  295. endif
  296. ifeq (${OStype},NetBSD)
  297. @echo ADK_HOST_NETBSD=y > $(TOPDIR)/all.config
  298. endif
  299. ifneq (,$(filter CYGWIN%,${OStype}))
  300. @echo ADK_HOST_CYGWIN=y > $(TOPDIR)/all.config
  301. endif
  302. @if [ ! -z "$(TARGET)" ];then \
  303. grep "^config" target/Config.in \
  304. |grep -i "$(TARGET)"\$$ \
  305. |sed -e "s#^config \(.*\)#\1=y#" \
  306. >> $(TOPDIR)/all.config; \
  307. for symbol in ${DEFCONFIG}; do \
  308. echo $$symbol >> $(TOPDIR)/all.config; \
  309. done; \
  310. fi
  311. @if [ ! -z "$(FS)" ];then \
  312. grep "^config" target/Config.in \
  313. |grep -i "$(FS)" \
  314. |sed -e "s#^config \(.*\)#\1=y#" \
  315. >> $(TOPDIR)/all.config; \
  316. fi
  317. @if [ ! -z "$(PKG)" ];then \
  318. grep "^config" target/Config.in \
  319. |grep -i "$(PKG)" \
  320. |sed -e "s#^config \(.*\)#\1=y#" \
  321. >> $(TOPDIR)/all.config; \
  322. fi
  323. @if [ ! -z "$(LIBC)" ];then \
  324. grep "^config" target/Config.in \
  325. |grep -i "$(LIBC)" \
  326. |sed -e "s#^config \(.*\)#\1=y#" \
  327. >> $(TOPDIR)/all.config; \
  328. fi
  329. ifneq (,$(filter %_qemu,${TARGET}))
  330. @echo ADK_LINUX_QEMU=y >> $(TOPDIR)/all.config
  331. endif
  332. ifneq (,$(filter %_toolchain,${TARGET}))
  333. @echo ADK_LINUX_TOOLCHAIN=y >> $(TOPDIR)/all.config
  334. endif
  335. ifneq (,$(filter %_rescue,${TARGET}))
  336. @echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/all.config
  337. endif
  338. ifneq (,$(filter rb%,${TARGET}))
  339. @echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/all.config
  340. endif
  341. ifneq (,$(filter alix%,${TARGET}))
  342. @echo ADK_LINUX_ALIX=y >> $(TOPDIR)/all.config
  343. endif
  344. ifneq (,$(filter wrap%,${TARGET}))
  345. @echo ADK_LINUX_ALIX=y >> $(TOPDIR)/all.config
  346. endif
  347. menuconfig: $(CONFIG)/mconf defconfig .menu
  348. @if [ ! -f .config ];then \
  349. $(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
  350. fi
  351. @$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
  352. ${POSTCONFIG}
  353. _config: $(CONFIG)/conf .menu
  354. -@touch .config
  355. @$(CONFIG)/conf ${W} $(CONFIG_CONFIG_IN)
  356. ${POSTCONFIG}
  357. .NOTPARALLEL: _mconfig
  358. _mconfig: ${CONFIG}/conf _mconfig2 _config
  359. _mconfig2: ${CONFIG}/conf modconfig .menu
  360. @${CONFIG}/conf -m ${RCONFIG} >/dev/null
  361. distclean:
  362. @$(MAKE) -C $(CONFIG) clean
  363. @rm -rf $(BUILD_DIR_PFX) $(BIN_DIR_PFX) $(TARGET_DIR_PFX) $(DISTDIR) \
  364. ${TOPDIR}/.cfg* ${TOPDIR}/package/pkglist.d
  365. @rm -rf $(TOOLCHAIN_BUILD_DIR_PFX) $(STAGING_PARENT_PFX) $(TOOLS_BUILD_DIR)
  366. @rm -f .config* .defconfig .tmpconfig.h all.config ${TOPDIR}/prereq.mk \
  367. .menu ${TOPDIR}/package/*/info.mk ${TOPDIR}/package/Depends.mk .ADK_HAVE_DOT_CONFIG
  368. endif # ! ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
  369. # build all targets and combinations
  370. bulk:
  371. while read target libc fs; do \
  372. mkdir -p $(TOPDIR)/bin/$${target}_$$libc; \
  373. ( \
  374. echo === building $$target $$libc $$fs on $$(date); \
  375. $(GMAKE) prereq && \
  376. $(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs defconfig; \
  377. $(GMAKE) VERBOSE=1 all; \
  378. rm .config; \
  379. ) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
  380. done <${TOPDIR}/target/bulk.lst
  381. bulkall:
  382. while read target libc fs; do \
  383. mkdir -p $(TOPDIR)/bin/$${target}_$$libc; \
  384. ( \
  385. echo === building $$target $$libc $$fs on $$(date); \
  386. $(GMAKE) prereq && \
  387. $(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs allconfig; \
  388. $(GMAKE) VERBOSE=1 all; \
  389. rm .config; \
  390. ) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
  391. done <${TOPDIR}/target/bulk.lst
  392. bulkallmod:
  393. while read target libc fs; do \
  394. mkdir -p $(TOPDIR)/bin/$${target}_$$libc; \
  395. ( \
  396. echo === building $$target $$libc $$fs on $$(date); \
  397. $(GMAKE) prereq && \
  398. $(GMAKE) TARGET=$$target LIBC=$$libc FS=$$fs allmodconfig; \
  399. $(GMAKE) VERBOSE=1 all; \
  400. rm .config; \
  401. ) 2>&1 | tee $(TOPDIR)/bin/$${target}_$$libc/$$target-$$libc-$$fs.log; \
  402. done <${TOPDIR}/target/bulk.lst
  403. menu .menu: $(wildcard ${TOPDIR}/package/*/Makefile)
  404. mksh $(TOPDIR)/package/pkgmaker
  405. @:>.menu
  406. dep:
  407. mksh $(TOPDIR)/package/depmaker
  408. .PHONY: menu dep