Magellan Linux

Contents of /tags/init-0_7_3/Makefile.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1674 - (show annotations) (download)
Sun Feb 5 16:59:32 2012 UTC (12 years, 1 month ago) by niro
File size: 903 byte(s)
tagged 'init-0_7_3'
1 # $Id$
2
3 CC = gcc
4 CFLAGS = -Os -Wall
5 LDFLAGS = -s
6
7 SYSCONFDIR = /etc
8 LIBDIR = /lib
9 SBINDIR = /sbin
10 RCDIR = $(SYSCONFDIR)/rc.d
11 INITDIR = $(RCDIR)/init.d
12 SYSTEMDDIR = /usr/lib/systemd
13 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