Magellan Linux

Annotation of /mcore-src/trunk/mcore-install/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1296 - (hide annotations) (download)
Sun Feb 6 23:23:41 2011 UTC (13 years, 3 months ago) by niro
File size: 657 byte(s)
-fixed typos and add add hwdetection


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