Makefile.am revision fa776d8e962da9d90459e2f3e86a2a0c6366ee12
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# This file is part of systemd.
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# Copyright 2010 Lennart Poettering
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# under the terms of the GNU General Public License as published by
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# the Free Software Foundation; either version 2 of the License, or
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# (at your option) any later version.
2edd4434e5bc6e5c7948df742d82f4bcd6c415f3Lennart Poettering# systemd is distributed in the hope that it will be useful, but
e096bf2f95c1cb553bb6f3ea370d450397e441e6Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
7ec75dc70fa414f53c9bb51881ac90d37dd3d5afLennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# General Public License for more details.
670802d4b1d16c3785a695bea6e13b8bf8c8a822Lennart Poettering# You should have received a copy of the GNU General Public License
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
rootlibexecdir=$(rootdir)/lib/systemd
systemunitdir=$(rootdir)/lib/systemd/system
-include $(top_builddir)/config.h \
-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
-DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
src/99-systemd.rules
units/getty@.service \
${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
${XML_IN_FILES:.xml.in=.html}
%.pc: %.pc.in Makefile
units/session/%: units/%.m4 Makefile
${XML_IN_FILES:.xml.in=.html} \
--param funcsynopsis.style "'ansi'"
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
$(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
org.freedesktop.systemd1.%.xml: systemd
$(DESTDIR)$(systemunitdir)/sockets.target.wants \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
$(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
$(DESTDIR)$(sysconfdir)/xdg/systemd
( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
rm -f dev-hugepages.automount \
rm -f org.freedesktop.systemd1.service && \
rm -f display-manager.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
rm -f prefdm.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
rm -f rc-local.service && \
rm -f local.service && \
$(LN_S) halt reboot > /dev/null 2>&1 || true )
rm -f display-manager.service && \
( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
rm -f xdm.service && \