Magellan Linux

Annotation of /tags/init-0_8_1/Makefile.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1389 - (hide annotations) (download)
Sat Jun 4 23:55:24 2011 UTC (12 years, 10 months ago) by niro
Original Path: trunk/initscripts/Makefile.inc
File size: 1113 byte(s)
-use o general include for common make operations
1 niro 1389 # $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 = $(LIBDIR)/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     # fix mageversion
31     echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(SYSCONFDIR)/mageversion
32     # fix system-release
33     echo "Magellan-linux release $$(date +%Y%m%d)-cvs (NEXT)" > $(DESTDIR)$(SYSCONFDIR)/system-release
34    
35     .PHONY: general