Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2351 - (hide annotations) (download)
Sat Jan 4 00:38:12 2014 UTC (10 years, 3 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 1885 byte(s)
-create and install localization
1 niro 2322 # $Id$
2 niro 2320
3 niro 2330 VERSION = $(shell cat VERSION)
4 niro 2331 SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir systemd)
5     INSTALLER_TTY = tty1
6 niro 2320
7 niro 2332 SYSCONFDIR = etc
8 niro 2325 PREFIX = /usr
9     LIBDIR = $(PREFIX)/lib/installer
10     BINDIR = $(PREFIX)/bin
11 niro 2320
12 niro 2329 SED = sed
13     INSTALL = install
14     LN_S = ln -snf
15     RM = rm
16    
17 niro 2327 all:
18 niro 2333 $(SED) -e 's:%VERSIONTAG%:$(VERSION):' \
19 niro 2349 -e 's:%LIBDIR%:$(LIBDIR):g' \
20 niro 2328 bin/installer.sh.in \
21     > bin/installer.sh
22 niro 2331 $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \
23     -e 's:%BINDIR%:$(BINDIR):g' \
24     systemd/installer.service.in \
25     > systemd/installer.service
26 niro 2320
27     create-dirs:
28 niro 2332 $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR)
29 niro 2329 $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
30     $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR)
31 niro 2320
32     install-files:
33 niro 2332 $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR)
34 niro 2329 $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer
35 niro 2335 $(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/
36 niro 2320
37 niro 2347 install-systemd:
38 niro 2331 $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)
39     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants
40     $(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)
41     $(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount
42 niro 2320
43 niro 2331 install: create-dirs install-files install-systemd
44    
45 niro 2351 pot: locale/installer.pot
46     generate-po.sh --create-pot bin/installer.sh.in installer
47     generate-po.sh --append-pot functions/common.sh installer
48     generate-po.sh --append-pot functions/common-dialogs.sh installer
49     generate-po.sh --append-pot functions/installer-dialogs.sh installer
50     generate-po.sh --append-pot functions/hwdetection.sh installer
51     generate-po.sh --generate bin/installer.sh.in installer
52     install-mo: locale/installer.pot
53     DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer
54    
55 niro 2320 clean:
56 niro 2329 $(RM) -f bin/installer.sh
57 niro 2331 $(RM) -f systemd/installer.service
58 niro 2320
59     .PHONY: all install