Revision 1678f270 Makefile

View differences:

Makefile
1 1
################################################################################
2 2
# AMiRo-OS is an operating system designed for the Autonomous Mini Robot       #
3 3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2016..2018  Thomas Schöpping et al.                            #
4
# Copyright (C) 2016..2019  Thomas Schöpping et al.                            #
5 5
#                                                                              #
6 6
# This program is free software: you can redistribute it and/or modify         #
7 7
# it under the terms of the GNU General Public License as published by         #
......
26 26
define HELP_TEXT
27 27
################################################################################
28 28
#                                                                              #
29
# Copyright (c) 2016..2018  Thomas Schöpping                                   #
29
# Copyright (c) 2016..2019  Thomas Schöpping                                   #
30 30
#                                                                              #
31 31
# This is free software; see the source for copying conditions. There is NO    #
32 32
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  #
......
48 48
  all:
49 49
      Builds the binaries for all modules.
50 50

  
51
  flash:
52
      Flashes all binaries to the hardware.
53
      If the binaries do not exist, they are created beforehand.
51
  <module>:
52
      Builds the binary only for the specified module.
53

  
54
  flash_<module>:
55
      Builds the binary for the specified module and flashes it to the hardware.
54 56

  
55 57
  clean:
56 58
      Deletes all temporary and binary files of all modules.
57 59

  
58
  <module>:
59
      Builds the binary only for the specified module.
60
  clean_<module>:
61
      Deletes all temporary and binary files of the specified module.
60 62

  
61 63

  
62 64
EXAMPLES:
......
69 71
      This command will generate the binary files for the two modules
70 72
      DiWheelDrive (version 1.1) and LightRing (version 1.0).
71 73

  
72
  >$$ make flash -j
73
      This command will first build all missing binary files and flash all
74
      modules as soon as the binaries are ready.
74
  >$$ make all -j
75
      This command will first build missing binary files for all modules that
76
      are found in the 'modules/' folder.
75 77
      By the additional argument '-j' the build process will be parallelized.
76 78

  
77
  >$$ make clean && make all && make flash
78
      This command will first clean all thee projects. In a second step the
79
      binaries for all modules are build from scratch. Finally all modules are
80
      updated with the latest software.
81
      The following command can be used as a shorter and faster version:
82
          >$$ make clean && make flash -j
79
  >$$ make flash_DiWheelDrive_1-1
80
      This command will build the binary for the DiWheelDrive module
81
      (version 1.1) only if required, and flash it to the hardware.
82

  
83
  >$$ make clean; make all; make flash_DiWheelDrive_1-1
84
      This command will first clean all projects. In a second step the binaries
85
      for all modules are build from scratch. Finally the DiWheelDrive module
86
      (version 1.1) is updated with the latest software.
83 87

  
84 88
################################################################################
85 89
endef

Also available in: Unified diff