Magellan Linux

Annotation of /trunk/installer-simple/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2325 - (hide annotations) (download)
Fri Jan 3 13:42:10 2014 UTC (10 years, 10 months ago) by niro
File size: 556 byte(s)
-use upper case variables
1 niro 2322 # $Id$
2 niro 2320
3     VERSION=$(shell cat VERSION)
4    
5     DESTDIR=
6    
7 niro 2325 PREFIX = /usr
8     LIBDIR = $(PREFIX)/lib/installer
9     BINDIR = $(PREFIX)/bin
10 niro 2320
11     all: install
12    
13     create-dirs:
14 niro 2325 install -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
15     install -d -m 0755 $(DESTDIR)/$(BINDIR)
16 niro 2320
17     install-files:
18 niro 2322 sed 's:%VERSIONTAG%:$(VERSION):' < bin/installer.sh.in > bin/installer.sh
19 niro 2325 install -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer
20     install -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/
21 niro 2320
22     install: create-dirs \
23     install-files \
24    
25     clean:
26 niro 2322 rm -f bin/installer.sh
27 niro 2320
28     .PHONY: all install