Changeset 6e9ae72 for Makefile


Ignore:
Timestamp:
2011-12-17T13:50:01Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
18c6d36
Parents:
87dddee (diff), 17f057d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r87dddee r6e9ae72  
    2727subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
    2828
    29 all: $(OUTFILE) $(OTR_PI) systemd
     29all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
    3030        $(MAKE) -C doc
     31ifdef SKYPE_PI
     32        $(MAKE) -C protocols/skype doc
     33endif
    3134
    3235uninstall: uninstall-bin uninstall-doc
     
    7174install-doc:
    7275        $(MAKE) -C doc install
     76ifdef SKYPE_PI
     77        $(MAKE) -C protocols/skype install-doc
     78endif
    7379
    7480uninstall-doc:
    7581        $(MAKE) -C doc uninstall
     82ifdef SKYPE_PI
     83        $(MAKE) -C protocols/skype uninstall-doc
     84endif
    7685
    7786install-bin:
    78         mkdir -p $(DESTDIR)$(BINDIR)
    79         install -m 0755 $(OUTFILE) $(DESTDIR)$(BINDIR)/$(OUTFILE)
     87        mkdir -p $(DESTDIR)$(SBINDIR)
     88        install -m 0755 $(OUTFILE) $(DESTDIR)$(SBINDIR)/$(OUTFILE)
    8089
    8190uninstall-bin:
    82         rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE)
     91        rm -f $(DESTDIR)$(SBINDIR)/$(OUTFILE)
    8392
    8493install-dev:
     
    104113        -rmdir $(DESTDIR)$(ETCDIR)
    105114
    106 install-plugins:
     115install-plugins: install-plugin-otr install-plugin-skype
     116
     117install-plugin-otr:
    107118ifdef OTR_PI
    108119        mkdir -p $(DESTDIR)$(PLUGINDIR)
    109120        install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR)
     121endif
     122
     123install-plugin-skype:
     124ifdef SKYPE_PI
     125        mkdir -p $(DESTDIR)$(PLUGINDIR)
     126        install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR)
     127        mkdir -p $(DESTDIR)$(ETCDIR)/../skyped $(DESTDIR)$(BINDIR)
     128        install -m 0644 $(SRCDIR)protocols/skype/skyped.cnf $(DESTDIR)$(ETCDIR)/../skyped/skyped.cnf
     129        install -m 0644 $(SRCDIR)protocols/skype/skyped.conf.dist $(DESTDIR)$(ETCDIR)/../skyped/skyped.conf
     130        install -m 0755 $(SRCDIR)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped
     131        make -C protocols/skype install-doc
    110132endif
    111133
     
    139161$(OTR_PI): %.so: $(SRCDIR)%.c
    140162        @echo '*' Building plugin $@
    141         @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@
     163        @$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
     164
     165$(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c
     166        @echo '*' Building plugin skype
     167        @$(CC) $(CFLAGS) -fPIC -shared $< -o $@
    142168
    143169$(objects): %.o: $(SRCDIR)%.c
     
    164190
    165191-include .depend/*.d
     192# DO NOT DELETE
Note: See TracChangeset for help on using the changeset viewer.