Annotation of /trunk/bootstrap/Makefile
Parent Directory | Revision Log
Revision 2185 -
(hide 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 | niro | 837 | # $Id$ |
2 | |||
3 | niro | 1488 | VERSION=$(shell cat VERSION) |
4 | niro | 837 | PREFIX=/usr |
5 | |||
6 | niro | 2184 | RM = rm |
7 | SED = sed | ||
8 | INSTALL = install | ||
9 | |||
10 | niro | 837 | sbindir=$(PREFIX)/sbin |
11 | srcdir=. | ||
12 | |||
13 | niro | 1488 | all: |
14 | niro | 2184 | $(SED) "s:@VERSION@:$(VERSION):g" $(srcdir)/mage-bootstrap.sh.in > $(srcdir)/mage-bootstrap.sh |
15 | niro | 837 | |
16 | install: | ||
17 | niro | 2184 | $(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 | niro | 837 | |
21 | niro | 2182 | clean: |
22 | niro | 2184 | $(RM) -f $(srcdir)/mage-bootstrap.sh |
23 | niro | 2182 | |
24 | .PHONY: all install clean |