Annotation of /trunk/bootstrap/Makefile
Parent Directory | Revision Log
Revision 2184 -
(hide annotations)
(download)
Wed Oct 9 10:20:18 2013 UTC (10 years, 11 months ago) by niro
File size: 546 byte(s)
Wed Oct 9 10:20:18 2013 UTC (10 years, 11 months ago) by niro
File size: 546 byte(s)
-use variable shell commands
1 | niro | 837 | # $Id$ |
2 | |||
3 | niro | 1488 | VERSION=$(shell cat VERSION) |
4 | |||
5 | niro | 837 | DESTDIR= |
6 | PREFIX=/usr | ||
7 | |||
8 | niro | 2184 | RM = rm |
9 | SED = sed | ||
10 | INSTALL = install | ||
11 | |||
12 | niro | 837 | sbindir=$(PREFIX)/sbin |
13 | srcdir=. | ||
14 | |||
15 | niro | 1488 | all: |
16 | niro | 2184 | $(SED) "s:@VERSION@:$(VERSION):g" $(srcdir)/mage-bootstrap.sh.in > $(srcdir)/mage-bootstrap.sh |
17 | niro | 837 | |
18 | install: | ||
19 | niro | 2184 | $(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 | niro | 837 | |
23 | niro | 2182 | clean: |
24 | niro | 2184 | $(RM) -f $(srcdir)/mage-bootstrap.sh |
25 | niro | 2182 | |
26 | .PHONY: all install clean |