Contents of /trunk/bootstrap/Makefile
Parent Directory | Revision Log
Revision 2185 -
(show annotations)
(download)
Wed Oct 9 10:20:40 2013 UTC (10 years, 11 months ago) by niro
File size: 536 byte(s)
Wed Oct 9 10:20:40 2013 UTC (10 years, 11 months ago) by niro
File size: 536 byte(s)
-empty DESTDIR define not required
1 | # $Id$ |
2 | |
3 | VERSION=$(shell cat VERSION) |
4 | PREFIX=/usr |
5 | |
6 | RM = rm |
7 | SED = sed |
8 | INSTALL = install |
9 | |
10 | sbindir=$(PREFIX)/sbin |
11 | srcdir=. |
12 | |
13 | all: |
14 | $(SED) "s:@VERSION@:$(VERSION):g" $(srcdir)/mage-bootstrap.sh.in > $(srcdir)/mage-bootstrap.sh |
15 | |
16 | install: |
17 | $(INSTALL) -d -m 0755 $(DESTDIR)$(sbindir) |
18 | $(INSTALL) -m 0755 $(srcdir)/mage-bootstrap.sh $(DESTDIR)$(sbindir)/mage-bootstrap |
19 | $(INSTALL) -m 0755 $(srcdir)/bootstrap-default-system.sh $(DESTDIR)$(sbindir)/bootstrap-default-system |
20 | |
21 | clean: |
22 | $(RM) -f $(srcdir)/mage-bootstrap.sh |
23 | |
24 | .PHONY: all install clean |