This commit is contained in:
F. Y. H. 2024-04-12 13:56:55 +02:00
parent a7af43bc32
commit 5b2367717c
Signed by: Alnotz
GPG key ID: B808CA1113935C00
2 changed files with 9 additions and 4 deletions

View file

@ -23,5 +23,5 @@ essai-command.o : essai-command.c essai.h essai-command.h $(WEECHAT_HEADER)
gcc $(GCCFLAGS) -c essai-command.c -o obj/essai-command.o $(GCCLIBS) gcc $(GCCFLAGS) -c essai-command.c -o obj/essai-command.o $(GCCLIBS)
clean : clean :
rm -r obj if [ -d obj ] ; then rm -r obj ; fi
rm -r lib if [ -d lib ] ; then rm -r lib ; fi

View file

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
if [ ! -d lib ]
then mkdir lib
fi
gcc $(pkg-config --cflags weechat) \ gcc $(pkg-config --cflags weechat) \
-shared -fPIC -Wall -Wextra src/essai.c src/essai-command.c -o lib/essai.so \ -shared -fPIC -Wall -Wextra src/essai.c src/essai-command.c -o lib/essai.so \
$(pkg-config --libs weechat) && \ $(pkg-config --libs weechat) && mv -v lib/essai.so ${XDG_DATA_HOME}/weechat/plugins/
mv -v lib/essai.so ${XDG_DATA_HOME}/weechat/plugins/
rmdir lib