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)
|
||||
|
||||
clean :
|
||||
rm -r obj
|
||||
rm -r lib
|
||||
if [ -d obj ] ; then rm -r obj ; fi
|
||||
if [ -d lib ] ; then rm -r lib ; fi
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
if [ ! -d lib ]
|
||||
then mkdir lib
|
||||
fi
|
||||
|
||||
gcc $(pkg-config --cflags weechat) \
|
||||
-shared -fPIC -Wall -Wextra src/essai.c src/essai-command.c -o lib/essai.so \
|
||||
$(pkg-config --libs weechat) && \
|
||||
mv -v lib/essai.so ${XDG_DATA_HOME}/weechat/plugins/
|
||||
$(pkg-config --libs weechat) && mv -v lib/essai.so ${XDG_DATA_HOME}/weechat/plugins/
|
||||
|
||||
rmdir lib
|
||||
|
|
Loading…
Reference in a new issue