Some fix
This commit is contained in:
parent
a7af43bc32
commit
5b2367717c
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue