mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-06 10:17:56 +08:00
2297fb17c8
update for tag movement updated to new release update pack in examples new release number rename to extra Cleanup Added ready-made examples to ST pack Add Keil examples Fix CRLF, start adding examples descriptions Remove examples STM32Cube Expansion Pack with no examples Add STM32Cube Expansion Pack skeleton Added examples for discussion Add support for Cube Working on examples pack skeleton ready
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
|