Magellan Linux

Annotation of /trunk/bootstrap/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2189 - (hide annotations) (download)
Wed Oct 9 10:27:56 2013 UTC (10 years, 7 months ago) by niro
File size: 825 byte(s)
-support variable staging dir
1 niro 837 # $Id$
2    
3 niro 2188 VERSION = $(shell cat VERSION)
4     PREFIX = /usr
5 niro 837
6 niro 2189 STAGINGDIR = /mnt/magellan
7    
8 niro 2184 RM = rm
9     SED = sed
10     INSTALL = install
11    
12 niro 2188 sbindir = $(PREFIX)/sbin
13     srcdir = .
14 niro 837
15 niro 1488 all:
16 niro 2186 $(SED) "s:@VERSION@:$(VERSION):g" \
17     $(srcdir)/mage-bootstrap.sh.in \
18     > $(srcdir)/mage-bootstrap.sh
19 niro 2189 $(SED) "s:@STAGINGDIR@:$(STAGINGDIR):g" \
20     $(srcdir)/bootstrap-default-system.sh.in \
21     > $(srcdir)/bootstrap-default-system.sh
22 niro 837
23     install:
24 niro 2184 $(INSTALL) -d -m 0755 $(DESTDIR)$(sbindir)
25 niro 2186 $(INSTALL) -m 0755 $(srcdir)/mage-bootstrap.sh \
26     $(DESTDIR)$(sbindir)/mage-bootstrap
27     $(INSTALL) -m 0755 $(srcdir)/bootstrap-default-system.sh \
28     $(DESTDIR)$(sbindir)/bootstrap-default-system
29 niro 2189 $(INSTALL) -d -m 0755 $(DESTDIR)$(STAGINGDIR)
30 niro 837
31 niro 2187 test:
32    
33 niro 2182 clean:
34 niro 2184 $(RM) -f $(srcdir)/mage-bootstrap.sh
35 niro 2189 $(RM) -f $(srcdir)/bootstrap-default-system.sh
36 niro 2182
37 niro 2187 .PHONY: all install clean test