Changeset 417002e
- Timestamp:
- 2011-03-18T00:57:14Z (14 years ago)
- Branches:
- master
- Children:
- c14959d
- Parents:
- f68fd5f
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rf68fd5f r417002e 27 27 subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o) 28 28 29 all: $(OUTFILE) $(OTR_PI) 29 all: $(OUTFILE) $(OTR_PI) systemd 30 30 $(MAKE) -C doc 31 31 … … 33 33 @echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n' 34 34 35 install: install-bin install-doc install-plugins 35 install: install-bin install-doc install-plugins install-systemd 36 36 @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi 37 37 @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 38 38 @echo 39 39 40 .PHONY: install install-bin install-etc install-doc install-plugins \40 .PHONY: install install-bin install-etc install-doc install-plugins install-systemd \ 41 41 uninstall uninstall-bin uninstall-etc uninstall-doc \ 42 42 all clean distclean tar $(subdirs) … … 110 110 endif 111 111 112 systemd: 113 ifdef SYSTEMDSYSTEMUNITDIR 114 sed 's|@sbindir@|$(BINDIR)|' init/bitlbee.service.in > init/bitlbee.service 115 sed 's|@sbindir@|$(BINDIR)|' init/bitlbee@.service.in > init/bitlbee@.service 116 endif 117 118 install-systemd: 119 ifdef SYSTEMDSYSTEMUNITDIR 120 ifeq ($(USER),root) 121 mkdir -p $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) 122 install -m 0644 init/bitlbee.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) 123 install -m 0644 init/bitlbee@.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) 124 install -m 0644 init/bitlbee.socket $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) 125 else 126 @echo Not root, so not installing systemd files. 127 endif 128 endif 129 112 130 tar: 113 131 fakeroot debian/rules clean || make distclean -
configure
rf68fd5f r417002e 16 16 plugindir='$prefix/lib/bitlbee/' 17 17 includedir='$prefix/include/bitlbee/' 18 systemdsystemunitdir='' 18 19 libevent='/usr/' 19 20 pidfile='/var/run/bitlbee.pid' … … 62 63 --datadir=... $datadir 63 64 --plugindir=... $plugindir 65 --systemdsystemunitdir=... $systemdsystemunitdir 64 66 --pidfile=... $pidfile 65 67 --config=... $config … … 487 489 fi 488 490 491 if [ -z "$systemdsystemunitdir" ]; then 492 if $PKG_CONFIG --exists systemd; then 493 systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd` 494 fi 495 fi 496 if [ -n "$systemdsystemunitdir" ]; then 497 if [ "$systemdsystemunitdir" != "no" ]; then 498 echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings 499 fi 500 fi 501 489 502 if [ "$gcov" = "1" ]; then 490 503 echo "CFLAGS+=--coverage" >> Makefile.settings … … 727 740 fi 728 741 742 if [ -n "$systemdsystemunitdir" ]; then 743 echo ' systemd enabled.' 744 else 745 echo ' systemd disabled.' 746 fi 747 729 748 echo ' Using event handler: '$events 730 749 echo ' Using SSL library: '$ssl
Note: See TracChangeset
for help on using the changeset viewer.