- Timestamp:
- 2011-03-18T00:57:14Z (14 years ago)
- Branches:
- master
- Children:
- c14959d
- Parents:
- f68fd5f
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.