/[baselayout]/trunk/src/Makefile
Gentoo

Diff of /trunk/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2904 Revision 2911
63 63
64LIB_TARGETS = $(LIBEINFOSO) $(LIBRCSO) 64LIB_TARGETS = $(LIBEINFOSO) $(LIBRCSO)
65SBIN_TARGETS = rc 65SBIN_TARGETS = rc
66SYS_WHITELIST = env_whitelist 66SYS_WHITELIST = env_whitelist
67 67
68TARGET = $(LIB_TARGETS) $(BIN_TARGETS) $(SBIN_TARGETS) $(PRIV_BIN_TARGETS) 68TARGET = $(LIB_TARGETS) $(BIN_TARGETS) $(SBIN_TARGETS)
69 69
70RCLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \ 70RC_BINLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
71 eindent eoutdent esyslog eval_ecolors \ 71 eindent eoutdent esyslog eval_ecolors \
72 veinfo vewarn vebegin veend vewend veindent veoutdent \ 72 veinfo vewarn vebegin veend vewend veindent veoutdent \
73 service_starting service_inactive service_started \ 73 service_starting service_inactive service_started \
74 service_stopping service_stopped \ 74 service_stopping service_stopped \
75 service_inactive service_wasinactive \ 75 service_inactive service_wasinactive \
76 service_coldplugged \ 76 service_coldplugged \
77 mark_service_starting mark_service_inactive mark_service_started \
78 mark_service_stopping mark_service_stopped \
79 mark_service_inactive mark_service_wasinactive \
80 mark_service_coldplugged \
81 get_options save_options rc-abort rc-depend \
82 is_runlevel_start is_runlevel_stop service_started_daemon \ 77 is_runlevel_start is_runlevel_stop service_started_daemon \
83 checkown fstabinfo mountinfo 78 checkown fstabinfo mountinfo rc-depend
79RC_SBINLINKS = mark_service_starting mark_service_inactive \
80 mark_service_started \
81 mark_service_stopping mark_service_stopped \
82 mark_service_inactive mark_service_wasinactive \
83 mark_service_coldplugged \
84 get_options save_options rc-abort
84BINLINKS = rc-status 85BINLINKS = rc-status
85SBINLINKS = env-update rc-update runscript start-stop-daemon 86SBINLINKS = env-update rc-update runscript start-stop-daemon
86 87
87# We also define _BSD_SOURCE so both Linux and the BSDs get a few 88# We also define _BSD_SOURCE so both Linux and the BSDs get a few
88# handy functions which makes our lives a lot easier 89# handy functions which makes our lives a lot easier
120 $(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $< 121 $(CC) $(CPPFLAGS) $(CPPFLAGS_SSD) $(CFLAGS) -c $<
121rc: $(LIBEINFOSO) $(LIBRCSO) $(RCOBJS) 122rc: $(LIBEINFOSO) $(LIBRCSO) $(RCOBJS)
122 $(CC) $(LDFLAGS) -o rc $(RCOBJS) $(LDLIBS) $(LDLIBS_RC) 123 $(CC) $(LDFLAGS) -o rc $(RCOBJS) $(LDLIBS) $(LDLIBS_RC)
123 124
124links: rc 125links: rc
125 for x in $(BINLINKS) $(SBINLINKS) $(RCLINKS) $(RCPRIVLINKS); do ln -sf rc $$x; done 126 for x in $(BINLINKS) $(SBINLINKS) $(RC_BINLINKS) $(RC_SBINLINKS); do ln -sf rc $$x; done
126 127
127install: $(TARGET) 128install: $(TARGET)
128 install -m 0755 -d $(DESTDIR)/$(LIB) 129 install -m 0755 -d $(DESTDIR)/$(LIB)
129 install -m 0755 $(LIB_TARGETS) $(DESTDIR)/$(LIB) 130 install -m 0755 $(LIB_TARGETS) $(DESTDIR)/$(LIB)
130 ln -sf $(LIBEINFOSO) $(DESTDIR)/$(LIB)/libeinfo.so 131 ln -sf $(LIBEINFOSO) $(DESTDIR)/$(LIB)/libeinfo.so
136 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin 137 install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin
137 ln -sf rc-update $(DESTDIR)/sbin/update-rc 138 ln -sf rc-update $(DESTDIR)/sbin/update-rc
138 install -m 0755 -d $(DESTDIR)/$(RC_LIB)/conf.d 139 install -m 0755 -d $(DESTDIR)/$(RC_LIB)/conf.d
139 install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(RC_LIB)/conf.d 140 install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(RC_LIB)/conf.d
140 install -m 0755 -d $(DESTDIR)/$(RC_LIB)/bin 141 install -m 0755 -d $(DESTDIR)/$(RC_LIB)/bin
142 install -m 0755 -d $(DESTDIR)/$(RC_LIB)/sbin
141 for x in $(BINLINKS); do ln -sf ../sbin/rc $(DESTDIR)/bin/$$x; done 143 for x in $(BINLINKS); do ln -sf ../sbin/rc $(DESTDIR)/bin/$$x; done
142 for x in $(SBINLINKS); do ln -sf rc $(DESTDIR)/sbin/$$x; done 144 for x in $(SBINLINKS); do ln -sf rc $(DESTDIR)/sbin/$$x; done
143 for x in $(RCLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/bin/$$x; done 145 for x in $(RC_BINLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/bin/$$x; done
146 for x in $(RC_SBINLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/sbin/$$x; done
144 if test "$(PAM)" = "pam" ; then \ 147 if test "$(PAM)" = "pam" ; then \
145 install -m 0755 -d $(DESTDIR)/etc/pam.d ; \ 148 install -m 0755 -d $(DESTDIR)/etc/pam.d ; \
146 install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \ 149 install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \
147 fi 150 fi
148 151

Legend:
Removed from v.2904  
changed lines
  Added in v.2911

  ViewVC Help
Powered by ViewVC 1.1.20