]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve embed_gw
authorfennecdjay <fennecdjay@gmail.com>
Sat, 21 Jan 2023 00:23:37 +0000 (01:23 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sat, 21 Jan 2023 00:23:37 +0000 (01:23 +0100)
Makefile

index d2ea31457d235381607da9b248bae3e347f71b89..35e642f382ccd338b141af6286ced60ae844201f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -80,9 +80,11 @@ options-show:
        @$(info libs: ${GWLIBS})
 
 embed_gw:
+       touch src/main.c
+       mkdir embed
        bash scripts/gw_embed.sh ${GWION_EMBED_GW} > src/embed.c
        CFLAGS="-DGWION_EMBED_GW -Iembed $(eval ${CFLAGS})" ${MAKE}
-       rm src/embed.c
+       rm -rf embed src/embed.c
 
 almost_gwion: ${almost_obj} ${ALMOST_LIBS}