Changeset e506d6c for Makefile


Ignore:
Timestamp:
2006-03-02T11:38:33Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
1e5fcac
Parents:
9a1555d
Message:

Install bitlbee's header files and a pkg-config file. This means
that 3rd-parties can write support for additional protocols in BitlBee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9a1555d re506d6c  
    1111# Program variables
    1212objects = account.o bitlbee.o conf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o unix.o url.o user.o util.o
     13headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h
    1314subdirs = protocols
    1415
     
    2021        $(MAKE) -C doc
    2122
    22 uninstall: uninstall-bin uninstall-doc
     23uninstall: uninstall-bin uninstall-doc uninstall-header uninstall-pc
    2324        @echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n'
    2425
    25 install: install-bin install-doc
     26install: install-bin install-doc install-header install-pc
    2627        @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi
    2728        @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi
     
    5657uninstall-bin:
    5758        rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE)
     59
     60install-header:
     61        mkdir -p $(DESTDIR)$(INCLUDEDIR)
     62        install -m 0644 $(headers) $(DESTDIR)$(INCLUDEDIR)
     63
     64uninstall-header:
     65        rm -f $(foreach hdr,$(headers),$(DESTDIR)$(INCLUDEDIR)/$(hdr))
     66        -rmdir $(DESTDIR)$(INCLUDEDIR)
     67
     68install-pc:
     69        mkdir -p $(DESTDIR)$(PCDIR)
     70        install -m 0644 bitlbee.pc $(DESTDIR)$(PCDIR)
     71
     72uninstall-pc:
     73        rm -f $(DESTDIR)$(PCDIR)/bitlbee.pc
    5874
    5975install-etc:
Note: See TracChangeset for help on using the changeset viewer.