Annotation of /mcore-src/tags/mcore-install-0_4_1/Makefile
Parent Directory | Revision Log
Revision 1608 -
(hide annotations)
(download)
Fri Mar 4 17:11:08 2011 UTC (13 years, 6 months ago) by niro
File size: 657 byte(s)
Fri Mar 4 17:11:08 2011 UTC (13 years, 6 months ago) by niro
File size: 657 byte(s)
tagged 'mcore-install-0_4_1'
1 | niro | 1275 | # mcore-install |
2 | # $Id$ | ||
3 | |||
4 | DESTDIR = | ||
5 | |||
6 | PREFIX = /usr | ||
7 | LIBDIR = $(PREFIX)/lib/mcore-install | ||
8 | BINDIR = $(PREFIX)/bin | ||
9 | |||
10 | INSTALL = install | ||
11 | LN = ln -snf | ||
12 | SED = sed -i | ||
13 | |||
14 | VERSION = $(shell cat VERSION) | ||
15 | |||
16 | all: install | ||
17 | |||
18 | create-dirs: | ||
19 | $(INSTALL) -d $(DESTDIR)/$(LIBDIR)/functions | ||
20 | $(INSTALL) -d $(DESTDIR)/$(BINDIR) | ||
21 | |||
22 | install-files: | ||
23 | niro | 1296 | $(INSTALL) -m0755 bin/mcore-install.sh $(DESTDIR)/$(LIBDIR)/mcore-install |
24 | $(SED) 's:@@VERSION@@:$(VERSION):g' $(DESTDIR)/$(LIBDIR)/mcore-install | ||
25 | $(LN) $(LIBDIR)/mcore-install $(DESTDIR)/$(BINDIR)/mcore-install | ||
26 | $(INSTALL) -m0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
27 | niro | 1275 | |
28 | install: create-dirs install-files | ||
29 | |||
30 | .PHONY: all install |