Magellan Linux

Contents of /trunk/installer-simple/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2330 - (show annotations) (download)
Fri Jan 3 13:49:29 2014 UTC (10 years, 10 months ago) by niro
File size: 611 byte(s)
-fixed whitespaces
1 # $Id$
2
3 VERSION = $(shell cat VERSION)
4
5 PREFIX = /usr
6 LIBDIR = $(PREFIX)/lib/installer
7 BINDIR = $(PREFIX)/bin
8
9 SED = sed
10 INSTALL = install
11 LN_S = ln -snf
12 RM = rm
13
14 all:
15 $(SED) 's:%VERSIONTAG%:$(VERSION):' \
16 bin/installer.sh.in \
17 > bin/installer.sh
18
19 create-dirs:
20 $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
21 $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR)
22
23 install-files:
24 $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer
25 $(INSTALL) -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/
26
27 install: create-dirs install-files
28
29 clean:
30 $(RM) -f bin/installer.sh
31
32 .PHONY: all install