Changeset 608 for soft/giet_vm


Ignore:
Timestamp:
Jul 13, 2015, 3:10:27 PM (9 years ago)
Author:
guerin
Message:

Makefile: fix .PHONY targets and group them

genmap was always executed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r602 r608  
    3737endif
    3838
    39 .PHONY: clean map.bin
     39### Rules that don't build a target file
     40.PHONY: all dirs list extract clean clean-disk
    4041
    4142.NOTPARALLEL:
     
    152153        mdir -/ -b -i $(DISK_IMAGE) ::/
    153154
     155#####################################################
     156### create build directories
    154157dirs:
    155158        @mkdir -p build/boot
     
    160163        @mkdir -p build/libs/math
    161164        @mkdir -p hdd
     165
     166#####################################################
     167### make a recursive list of the virtual disk content
     168list:
     169         mdir -/ -w -i $(DISK_IMAGE) ::/
     170
     171########################################################
     172### copy the files generated by the virtual prototype on
     173### the virtual disk "home" directory to the giet_vm home directory
     174extract:
     175        mcopy -o -i $(DISK_IMAGE) ::/home .
     176
     177########################################
     178### clean all binary files
     179clean:
     180        rm -f *.o *.elf *.bin *.txt core
     181        rm -f hard_config.h giet_vsegs.ld map.bin map.xml
     182        rm -rf build/kernel/*
     183        rm -rf build/boot/*
     184        rm -rf build/libs/*
     185        $(MAKE) -C applications/classif     clean
     186        $(MAKE) -C applications/convol      clean
     187        $(MAKE) -C applications/coproc      clean
     188        $(MAKE) -C applications/display     clean
     189        $(MAKE) -C applications/dhrystone   clean
     190        $(MAKE) -C applications/gameoflife  clean
     191        cd applications/ocean && $(MAKE) clean && cd ../..
     192        $(MAKE) -C applications/router      clean
     193        $(MAKE) -C applications/shell       clean
     194        $(MAKE) -C applications/sort        clean
     195        $(MAKE) -C applications/transpose   clean
     196
     197########################################
     198### delete disk image
     199clean-disk:
     200        rm -f $(DISK_IMAGE)
    162201
    163202#########################
     
    181220        mcopy -o -i $(DISK_IMAGE) images/couple_512.raw ::/misc
    182221
    183 #####################################################
    184 ### make a recursive list of the virtual disk content
    185 list:
    186          mdir -/ -w -i $(DISK_IMAGE) ::/
    187 
    188 ########################################################
    189 ### copy the files generated by the virtual prototype on
    190 ### the virtual disk "home" directory to the giet_vm home directory
    191 extract:
    192         mcopy -o -i $(DISK_IMAGE) ::/home .
    193 
    194222#########################################################################
    195223### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld
     
    299327        $(AR) -rcs $@ $^
    300328
    301 
    302 
    303329########################################
    304330### classif   application compilation
     
    378404        mcopy -o -i $(DISK_IMAGE) $@ ::/build/transpose
    379405
    380 
    381 
    382 
    383 ########################################
    384 ### clean all binary files
    385 clean:
    386         rm -f *.o *.elf *.bin *.txt core
    387         rm -f hard_config.h giet_vsegs.ld map.bin map.xml
    388         rm -rf build/kernel/*
    389         rm -rf build/boot/*
    390         rm -rf build/libs/*
    391         $(MAKE) -C applications/classif     clean
    392         $(MAKE) -C applications/convol      clean
    393         $(MAKE) -C applications/coproc      clean
    394         $(MAKE) -C applications/display     clean
    395         $(MAKE) -C applications/dhrystone   clean
    396         $(MAKE) -C applications/gameoflife  clean
    397         cd applications/ocean && $(MAKE) clean && cd ../..
    398         $(MAKE) -C applications/router      clean
    399         $(MAKE) -C applications/shell       clean
    400         $(MAKE) -C applications/sort        clean
    401         $(MAKE) -C applications/transpose   clean
    402 
    403 ########################################
    404 ### delete disk image
    405 clean-disk:
    406         rm -f $(DISK_IMAGE)
    407 
    408 
    409 
Note: See TracChangeset for help on using the changeset viewer.