Magellan Linux

Annotation of /tags/installer-simple-0_4_90_20140108_2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2328 - (hide annotations) (download)
Fri Jan 3 13:44:02 2014 UTC (10 years, 3 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 539 byte(s)
-fixed line breaks
1 niro 2322 # $Id$
2 niro 2320
3     VERSION=$(shell cat VERSION)
4    
5 niro 2325 PREFIX = /usr
6     LIBDIR = $(PREFIX)/lib/installer
7     BINDIR = $(PREFIX)/bin
8 niro 2320
9 niro 2327 all:
10 niro 2328 sed 's:%VERSIONTAG%:$(VERSION):' \
11     bin/installer.sh.in \
12     > bin/installer.sh
13 niro 2320
14     create-dirs:
15 niro 2325 install -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
16     install -d -m 0755 $(DESTDIR)/$(BINDIR)
17 niro 2320
18     install-files:
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 niro 2328 install: create-dirs install-files
23 niro 2320
24     clean:
25 niro 2322 rm -f bin/installer.sh
26 niro 2320
27     .PHONY: all install