Magellan Linux

Annotation of /trunk/initscripts/systemd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2212 - (hide annotations) (download)
Tue Oct 15 08:54:48 2013 UTC (10 years, 6 months ago) by niro
File size: 583 byte(s)
-use pkg-config to determinate systemd pathes
1 niro 1384 # $Id$
2    
3     all:
4    
5 niro 1391 include ../Makefile.inc
6 niro 1384
7 niro 2212 SYSTEMDDIR = $(shell $(PKGCONFIG) pkg-config systemd --variable=systemdutildir)
8     SYSTEMDUNITSDIR = $(shell $(PKGCONFIG) systemd --variable=systemdsystemunitdir)
9 niro 2211
10 niro 1391 install_systemd: general
11 niro 1384 # install system-units
12 niro 1391 install -d -m 0755 $(DESTDIR)$(SYSTEMDDIR)
13 niro 2211 install -d -m 0755 $(DESTDIR)$(SYSTEMDUNITSDIR)
14     for file in units/services/*; do install -m 0644 $${file} $(DESTDIR)$(SYSTEMDUNITSDIR)/; done
15 niro 1384 # install network script
16 niro 1391 install -m 0755 units/scripts/network.sh $(DESTDIR)$(SYSTEMDDIR)/magellan-network
17 niro 1384
18 niro 1391 .PHONY: all install_systemd general