Annotation of /tags/installer-simple-0_4_91_20160203_1/Makefile
Parent Directory | Revision Log
Revision 2641 -
(hide annotations)
(download)
Wed Apr 2 11:26:54 2014 UTC (10 years, 5 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 3374 byte(s)
Wed Apr 2 11:26:54 2014 UTC (10 years, 5 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 3374 byte(s)
-dropped mnt-cdrom.mount and using dracuts /run/initramfs/live iso mount path
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 | 2453 | systemd/installer.service.in \ |
32 | > systemd/installer.service | ||
33 | niro | 2640 | $(SED) -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ |
34 | -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ | ||
35 | conf/installer.conf.in \ | ||
36 | > conf/installer.conf | ||
37 | niro | 2453 | |
38 | create-dirs: | ||
39 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) | ||
40 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions | ||
41 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR) | ||
42 | |||
43 | install-files: | ||
44 | $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) | ||
45 | $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer | ||
46 | $(INSTALL) -m 0644 functions/common.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
47 | $(INSTALL) -m 0644 functions/common-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
48 | $(INSTALL) -m 0644 functions/installer-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
49 | $(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
50 | $(INSTALL) -m 0644 functions/bootloader.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
51 | $(INSTALL) -m 0644 functions/grub.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
52 | $(INSTALL) -m 0644 functions/grub2.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
53 | $(INSTALL) -m 0644 functions/initrd-tools.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
54 | $(INSTALL) -m 0644 functions/dracut.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
55 | $(INSTALL) -m 0644 functions/mkinitrd.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
56 | |||
57 | install-systemd: | ||
58 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) | ||
59 | niro | 2504 | $(INSTALL) -m 0644 systemd/installer.service $(DESTDIR)/$(SYSTEMDUNITDIR) |
60 | niro | 2453 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants |
61 | |||
62 | niro | 2455 | install: create-dirs install-files install-systemd install-mo |
63 | niro | 2453 | |
64 | pot: locale/installer.pot | ||
65 | generate-po.sh --create-pot bin/installer.sh.in installer | ||
66 | generate-po.sh --append-pot functions/common.sh installer | ||
67 | generate-po.sh --append-pot functions/common-dialogs.sh installer | ||
68 | generate-po.sh --append-pot functions/installer-dialogs.sh installer | ||
69 | generate-po.sh --append-pot functions/hwdetection.sh installer | ||
70 | generate-po.sh --append-pot functions/bootloader.sh installer | ||
71 | generate-po.sh --append-pot functions/grub.sh installer | ||
72 | generate-po.sh --append-pot functions/grub2.sh installer | ||
73 | generate-po.sh --append-pot functions/initrd-tools.sh installer | ||
74 | generate-po.sh --append-pot functions/dracut.sh installer | ||
75 | generate-po.sh --append-pot functions/mkinitrd.sh installer | ||
76 | generate-po.sh --unique-pot bin/installer.sh.in installer | ||
77 | generate-po.sh --generate bin/installer.sh.in installer | ||
78 | |||
79 | install-mo: locale/installer.pot | ||
80 | DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer | ||
81 | |||
82 | clean: | ||
83 | $(RM) -f bin/installer.sh | ||
84 | niro | 2640 | $(RM) -f conf/installer.conf |
85 | niro | 2453 | $(RM) -f systemd/installer.service |
86 | niro | 2497 | $(RM) -f locale/installer.pot.dump |
87 | $(RM) -f locale/installer.pot.fixed | ||
88 | niro | 2453 | |
89 | .PHONY: all install |