Annotation of /tags/installer-simple-0_4_90_20140703_1/Makefile
Parent Directory | Revision Log
Revision 2647 -
(hide annotations)
(download)
Wed Jul 2 12:40:16 2014 UTC (9 years, 11 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 3436 byte(s)
Wed Jul 2 12:40:16 2014 UTC (9 years, 11 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 3436 byte(s)
-fixed broken IMAGEROOT and INSTALLROOT variables sed lines
1 | niro | 2453 | # $Id$ |
2 | |||
3 | SYSCONFDIR = /etc | ||
4 | PREFIX = /usr | ||
5 | LIBDIR = $(PREFIX)/lib/installer | ||
6 | BINDIR = $(PREFIX)/bin | ||
7 | |||
8 | SED = sed | ||
9 | INSTALL = install | ||
10 | LN_S = ln -snf | ||
11 | RM = rm | ||
12 | CAT = cat | ||
13 | PKGCONFIG = pkg-config | ||
14 | |||
15 | VERSION = $(shell $(CAT) VERSION) | ||
16 | SYSTEMDUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd) | ||
17 | INSTALLER_TTY = tty1 | ||
18 | niro | 2640 | INSTALLER_IMAGEROOT = /run/initramfs/live/system |
19 | INSTALLER_INSTALLROOT = /mnt/magellan | ||
20 | niro | 2508 | LOCALE = |
21 | niro | 2453 | |
22 | niro | 2465 | all: |
23 | niro | 2453 | $(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
24 | -e 's:%LIBDIR%:$(LIBDIR):g' \ | ||
25 | niro | 2454 | -e 's:%SYSCONFDIR%:$(SYSCONFDIR):g' \ |
26 | niro | 2453 | bin/installer.sh.in \ |
27 | > bin/installer.sh | ||
28 | niro | 2456 | $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
29 | -e 's:%BINDIR%:$(BINDIR):g' \ | ||
30 | niro | 2508 | -e 's:%LOCALE%:$(LOCALE):g' \ |
31 | niro | 2647 | -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ |
32 | niro | 2453 | systemd/installer.service.in \ |
33 | > systemd/installer.service | ||
34 | niro | 2647 | $(SED) -e 's:%INSTALLER_INSTALLROOT%:$(INSTALLER_INSTALLROOT):g' \ |
35 | niro | 2640 | -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ |
36 | conf/installer.conf.in \ | ||
37 | > conf/installer.conf | ||
38 | niro | 2453 | |
39 | create-dirs: | ||
40 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) | ||
41 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions | ||
42 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR) | ||
43 | |||
44 | install-files: | ||
45 | $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) | ||
46 | $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer | ||
47 | $(INSTALL) -m 0644 functions/common.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
48 | $(INSTALL) -m 0644 functions/common-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
49 | $(INSTALL) -m 0644 functions/installer-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
50 | $(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
51 | $(INSTALL) -m 0644 functions/bootloader.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
52 | $(INSTALL) -m 0644 functions/grub.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
53 | $(INSTALL) -m 0644 functions/grub2.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
54 | $(INSTALL) -m 0644 functions/initrd-tools.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
55 | $(INSTALL) -m 0644 functions/dracut.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
56 | $(INSTALL) -m 0644 functions/mkinitrd.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
57 | |||
58 | install-systemd: | ||
59 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) | ||
60 | niro | 2504 | $(INSTALL) -m 0644 systemd/installer.service $(DESTDIR)/$(SYSTEMDUNITDIR) |
61 | niro | 2453 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants |
62 | |||
63 | niro | 2455 | install: create-dirs install-files install-systemd install-mo |
64 | niro | 2453 | |
65 | pot: locale/installer.pot | ||
66 | generate-po.sh --create-pot bin/installer.sh.in installer | ||
67 | generate-po.sh --append-pot functions/common.sh installer | ||
68 | generate-po.sh --append-pot functions/common-dialogs.sh installer | ||
69 | generate-po.sh --append-pot functions/installer-dialogs.sh installer | ||
70 | generate-po.sh --append-pot functions/hwdetection.sh installer | ||
71 | generate-po.sh --append-pot functions/bootloader.sh installer | ||
72 | generate-po.sh --append-pot functions/grub.sh installer | ||
73 | generate-po.sh --append-pot functions/grub2.sh installer | ||
74 | generate-po.sh --append-pot functions/initrd-tools.sh installer | ||
75 | generate-po.sh --append-pot functions/dracut.sh installer | ||
76 | generate-po.sh --append-pot functions/mkinitrd.sh installer | ||
77 | generate-po.sh --unique-pot bin/installer.sh.in installer | ||
78 | generate-po.sh --generate bin/installer.sh.in installer | ||
79 | |||
80 | install-mo: locale/installer.pot | ||
81 | DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer | ||
82 | |||
83 | clean: | ||
84 | $(RM) -f bin/installer.sh | ||
85 | niro | 2640 | $(RM) -f conf/installer.conf |
86 | niro | 2453 | $(RM) -f systemd/installer.service |
87 | niro | 2497 | $(RM) -f locale/installer.pot.dump |
88 | $(RM) -f locale/installer.pot.fixed | ||
89 | niro | 2453 | |
90 | .PHONY: all install |