Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rebe2c5e re252d8c  
    1111# Program variables
    1212objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_channel.o irc_commands.o irc_send.o irc_user.o irc_util.o nick.o $(OTR_BI) query.o root_commands.o set.o storage.o $(STORAGE_OBJS) unix.o conf.o log.o
    13 headers = $(wildcard $(_SRCDIR_)*.h $(_SRCDIR_)lib/*.h $(_SRCDIR_)protocols/*.h)
     13headers = $(wildcard *.h lib/*.h protocols/*.h)
    1414subdirs = lib protocols
    1515
     
    9494        mkdir -p $(DESTDIR)$(INCLUDEDIR)
    9595        $(INSTALL) -m 0644 config.h $(DESTDIR)$(INCLUDEDIR)
    96         for i in $(headers); do $(INSTALL) -m 0644 $$i $(DESTDIR)$(INCLUDEDIR); done
     96        for i in $(headers); do $(INSTALL) -m 0644 $(_SRCDIR_)$$i $(DESTDIR)$(INCLUDEDIR); done
    9797        mkdir -p $(DESTDIR)$(PCDIR)
    9898        $(INSTALL) -m 0644 bitlbee.pc $(DESTDIR)$(PCDIR)
     
    141141install-systemd: systemd
    142142ifdef SYSTEMDSYSTEMUNITDIR
     143ifeq ($(shell id -u),0)
    143144        mkdir -p $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
    144145        $(INSTALL) -m 0644 init/bitlbee.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
     
    146147        $(INSTALL) -m 0644 $(_SRCDIR_)init/bitlbee.socket $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
    147148else
    148         @echo SYSTEMDSYSTEMUNITDIR not set, not installing systemd unit files.
     149        @echo Not root, so not installing systemd files.
     150endif
    149151endif
    150152
Note: See TracChangeset for help on using the changeset viewer.