Changeset 0075527 for Makefile


Ignore:
Timestamp:
2013-03-17T13:38:14Z (8 years ago)
Author:
Nick Murdoch <nick@…>
Children:
0147ca9
Parents:
9b2a8c1
Message:

Add existing git project files, and modify bitlbee's build script to build the plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9b2a8c1 r0075527  
    2727subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
    2828
    29 all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) doc systemd
     29all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) $(PYTHON_PI) doc systemd
    3030ifdef SKYPE_PI
    3131        $(MAKE) -C protocols/skype doc
     
    5757ifdef SKYPE_PI
    5858        $(MAKE) -C protocols/skype clean
     59endif
     60ifdef PYTHON_PI
     61        $(MAKE) -C protocols/python clean
    5962endif
    6063
     
    118121        -rmdir $(DESTDIR)$(ETCDIR)
    119122
    120 install-plugins: install-plugin-otr install-plugin-skype
     123install-plugins: install-plugin-otr install-plugin-skype install-plugin-python
    121124
    122125install-plugin-otr:
     
    135138        install -m 0755 $(_SRCDIR_)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped
    136139        make -C protocols/skype install-doc
     140endif
     141
     142install-plugin-python:
     143ifdef PYTHON_PI
     144        mkdir -p $(DESTDIR)$(PLUGINDIR)
     145        install -m 0755 bpython.so $(DESTDIR)$(PLUGINDIR)
    137146endif
    138147
     
    170179$(SKYPE_PI): $(_SRCDIR_)protocols/skype/skype.c
    171180        @echo '*' Building plugin skype
    172         @$(CC) $(CFLAGS) $(SKYPEFLAGS) $< -o $@
     181        $(CC) $(CFLAGS) $(SKYPEFLAGS) $< -o $@
     182
     183$(PYTHON_PI): $(_SRCDIR_)protocols/python/src/bpython.c
     184        @echo '*' Building plugin python
     185        $(CC) $(CFLAGS) $(PYTHONCFLAGS) $< -o $@ $(EFLAGS) $(PYTHONLDFLAGS)
    173186
    174187$(objects): %.o: $(_SRCDIR_)%.c
Note: See TracChangeset for help on using the changeset viewer.