Magellan Linux

Contents of /trunk/bootstrap/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2184 - (show annotations) (download)
Wed Oct 9 10:20:18 2013 UTC (10 years, 6 months ago) by niro
File size: 546 byte(s)
-use variable shell commands
1 # $Id$
2
3 VERSION=$(shell cat VERSION)
4
5 DESTDIR=
6 PREFIX=/usr
7
8 RM = rm
9 SED = sed
10 INSTALL = install
11
12 sbindir=$(PREFIX)/sbin
13 srcdir=.
14
15 all:
16 $(SED) "s:@VERSION@:$(VERSION):g" $(srcdir)/mage-bootstrap.sh.in > $(srcdir)/mage-bootstrap.sh
17
18 install:
19 $(INSTALL) -d -m 0755 $(DESTDIR)$(sbindir)
20 $(INSTALL) -m 0755 $(srcdir)/mage-bootstrap.sh $(DESTDIR)$(sbindir)/mage-bootstrap
21 $(INSTALL) -m 0755 $(srcdir)/bootstrap-default-system.sh $(DESTDIR)$(sbindir)/bootstrap-default-system
22
23 clean:
24 $(RM) -f $(srcdir)/mage-bootstrap.sh
25
26 .PHONY: all install clean