Magellan Linux

Annotation of /trunk/bootstrap/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1488 - (hide annotations) (download)
Thu Aug 4 13:20:03 2011 UTC (12 years, 9 months ago) by niro
File size: 445 byte(s)
-set the right version and get it from a version file
1 niro 837 # $Id$
2    
3 niro 1488 VERSION=$(shell cat VERSION)
4    
5 niro 837 DESTDIR=
6     PREFIX=/usr
7    
8     sbindir=$(PREFIX)/sbin
9     srcdir=.
10    
11 niro 1488 all:
12     sed "s:@VERSION@:$(VERSION):g" $(srcdir)/mage-bootstrap.sh.in > $(srcdir)/mage-bootstrap.sh
13 niro 837
14     install:
15     install -d -m 0755 $(DESTDIR)$(sbindir)
16     install -m 0755 $(srcdir)/mage-bootstrap.sh $(DESTDIR)$(sbindir)/mage-bootstrap
17     install -m 0755 $(srcdir)/bootstrap-default-system.sh $(DESTDIR)$(sbindir)/bootstrap-default-system
18    
19     .PHONY: all install