Makefile 中的 @true 与 @false 命令
发布日期:2021-05-10 10:32:56 浏览次数:16 分类:精选文章

本文共 1806 字,大约阅读时间需要 6 分钟。

@true ��� @false ������

@true ��� @false ��� Makefile ������������������������������������������������������������������

������������

  • @true������������������������������ 0 ���������������������Makefile ������������������������������
  • @false������������ 0 ���������������������Makefile ���������������������������������������������������������������������������

������

������������������������������������������ Makefile ��������� @true ��� @false���

foo:
@echo echoing with @true
@true
@echo this won't be printed
bar:
$(foo)
@echo this depends on foo

��������� Makefile ������

  • ��� foo ��������������������� @false���������������������
  • @true ������������������������������������ 0���������������������

���������������������

������������������������ -���

foo:
-@false
@echo ���������������

������������������ @false ��������� 0���Make ������������������������������������������

dpdk ���������

��� dpdk ��������������������������� @true ��������������� rte_config.h ������������

# ������������������
$(RTE_OUTPUT)/include/rte_config.h: $(RTE_OUTPUT)/.config
$(Q)mkdir -p $(RTE_OUTPUT)/include
$(RTE_SDK)/scripts/gen-config-h.sh $(RTE_OUTPUT)/.config > $(RTE_OUTPUT)/include/rte_config.h
# ������������������
.PHONY: headerconfig
headerconfig: $(RTE_OUTPUT)/include/rte_config.h
@true

��� @true ��������������� rte_config.h ������������������������������������������Make ������������������������������������

������������

  • ��������������������������������������� @true ���������������������
  • ������������ terminates: ������ @false ���������������������������������������
  • ������

    @true ��� @false ��� Makefile ���������������������������������������������������������������������������������������������������������������������������������������������������������������������

    上一篇:dpdk 问题排查的第一关:基础环境的排查
    下一篇:uio 设备文件创建以及 iommu 导致 x710 网卡初始化失败问题

    发表评论

    最新留言

    路过按个爪印,很不错,赞一个!
    [***.219.124.196]2025年04月23日 08时48分33秒