Magellan Linux

Annotation of /trunk/initscripts/Makefile.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1670 - (hide annotations) (download)
Sun Feb 5 16:12:26 2012 UTC (12 years, 8 months ago) by niro
File size: 903 byte(s)
-LIBDIR is used by sysvinit and must be /lib
1 niro 1389 # $Id$
2    
3     CC = gcc
4     CFLAGS = -Os -Wall
5     LDFLAGS = -s
6    
7     SYSCONFDIR = /etc
8 niro 1670 LIBDIR = /lib
9 niro 1389 SBINDIR = /sbin
10     RCDIR = $(SYSCONFDIR)/rc.d
11     INITDIR = $(RCDIR)/init.d
12 niro 1670 SYSTEMDDIR = /usr/lib/systemd
13 niro 1389 UNITSDIR = $(SYSTEMDDIR)/system
14    
15     general:
16     install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)
17     for file in etc/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/; done
18     # fix shadow permissions
19     if [ -f $(DESTDIR)/$(SYSCONFDIR)/shadow ];then chmod 0400 $(DESTDIR)$(SYSCONFDIR)/shadow; fi
20    
21     install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/conf.d
22     for file in conf.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/conf.d/; done
23    
24     install -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/modprobe.d
25     for file in modprobe.d/*; do install -m 0644 $${file} $(DESTDIR)$(SYSCONFDIR)/modprobe.d/; done
26    
27     install -d -m 0755 $(DESTDIR)$(SBINDIR)
28     for file in sbin/*; do install -m 0755 $${file} $(DESTDIR)$(SBINDIR); done
29    
30     .PHONY: general