Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2327 - (hide annotations) (download)
Fri Jan 3 13:43:27 2014 UTC (10 years, 3 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 538 byte(s)
-move file creation to make all section
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     sed 's:%VERSIONTAG%:$(VERSION):' < bin/installer.sh.in > bin/installer.sh
11 niro 2320
12     create-dirs:
13 niro 2325 install -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
14     install -d -m 0755 $(DESTDIR)/$(BINDIR)
15 niro 2320
16     install-files:
17 niro 2325 install -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer
18     install -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/
19 niro 2320
20     install: create-dirs \
21     install-files \
22    
23     clean:
24 niro 2322 rm -f bin/installer.sh
25 niro 2320
26     .PHONY: all install