mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-07 20:12:29 +08:00
23 lines
1.0 KiB
Makefile
23 lines
1.0 KiB
Makefile
|
# make pre, run STM32PackCreator, make post
|
||
|
|
||
|
pre:
|
||
|
find Examples/* -maxdepth 0 -exec mkdir -p {}"/Middlewares/Third_Party/Cesanta_Network Library/Mongoose/" \;
|
||
|
find Examples/* -maxdepth 0 -exec cp ../../mongoose.[ch] {}"/Middlewares/Third_Party/Cesanta_Network Library/Mongoose/" \;
|
||
|
grep -l device_dashboard_fn Examples/*/Core/Src/main.c | xargs -n 1 dirname | sed 's.$$./.' | xargs -n 1 cp ../../examples/device-dashboard/net.c
|
||
|
grep -l device_dashboard_fn Examples/*/Core/Src/main.c | xargs -n 1 dirname | sed 's.$$./.' | xargs -n 1 cp ../../examples/device-dashboard/packed_fs.c
|
||
|
$(MAKE) -f ../../test/cube/Makefile "PROJECTS=$(wildcard Examples/*)"
|
||
|
sudo rm -rf Examples/*/Debug
|
||
|
sudo rm -rf Examples/*/Release
|
||
|
|
||
|
post:
|
||
|
rm -f Examples/*/Middlewares/Third_Party/Cesanta_Network\ Library/Mongoose/mongoose.[ch]
|
||
|
rm -f Examples/*/Core/Src/net.c
|
||
|
rm -f Examples/*/Core/Src/packed_fs.c
|
||
|
|
||
|
packcreator:
|
||
|
/opt/st/STM32CubeMX/jre/bin/java -jar /opt/st/STM32CubeMX/utilities/STM32PackCreator/STM32PackCreator.jar
|
||
|
|
||
|
clean:
|
||
|
rm -rf Files
|
||
|
rm *.pack
|