19 |
all: |
all: |
20 |
$(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
$(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
21 |
-e 's:%LIBDIR%:$(LIBDIR):g' \ |
-e 's:%LIBDIR%:$(LIBDIR):g' \ |
22 |
|
-e 's:%SYSCONFDIR%:$(SYSCONFDIR):g' \ |
23 |
bin/installer.sh.in \ |
bin/installer.sh.in \ |
24 |
> bin/installer.sh |
> bin/installer.sh |
25 |
$(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
$(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
26 |
-e 's:%BINDIR%:$(BINDIR):g' \ |
-e 's:%BINDIR%:$(BINDIR):g' \ |
27 |
systemd/installer.service.in \ |
systemd/installer.service.in \ |
28 |
> systemd/installer.service |
> systemd/installer.service |
29 |
|
|
35 |
install-files: |
install-files: |
36 |
$(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) |
$(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) |
37 |
$(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer |
$(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer |
38 |
|
$(INSTALL) -m 0644 functions/common.sh $(DESTDIR)$(LIBDIR)/functions/ |
39 |
|
$(INSTALL) -m 0644 functions/common-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ |
40 |
|
$(INSTALL) -m 0644 functions/installer-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ |
41 |
$(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ |
$(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ |
42 |
|
$(INSTALL) -m 0644 functions/bootloader.sh $(DESTDIR)$(LIBDIR)/functions/ |
43 |
|
$(INSTALL) -m 0644 functions/grub.sh $(DESTDIR)$(LIBDIR)/functions/ |
44 |
|
$(INSTALL) -m 0644 functions/grub2.sh $(DESTDIR)$(LIBDIR)/functions/ |
45 |
|
$(INSTALL) -m 0644 functions/initrd-tools.sh $(DESTDIR)$(LIBDIR)/functions/ |
46 |
|
$(INSTALL) -m 0644 functions/dracut.sh $(DESTDIR)$(LIBDIR)/functions/ |
47 |
|
$(INSTALL) -m 0644 functions/mkinitrd.sh $(DESTDIR)$(LIBDIR)/functions/ |
48 |
|
|
49 |
install-systemd: |
install-systemd: |
50 |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) |
52 |
$(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR) |
$(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR) |
53 |
$(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount |
$(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount |
54 |
|
|
55 |
install: create-dirs install-files install-systemd |
install: create-dirs install-files install-systemd install-mo |
56 |
|
|
57 |
pot: locale/installer.pot |
pot: locale/installer.pot |
58 |
generate-po.sh --create-pot bin/installer.sh.in installer |
generate-po.sh --create-pot bin/installer.sh.in installer |
60 |
generate-po.sh --append-pot functions/common-dialogs.sh installer |
generate-po.sh --append-pot functions/common-dialogs.sh installer |
61 |
generate-po.sh --append-pot functions/installer-dialogs.sh installer |
generate-po.sh --append-pot functions/installer-dialogs.sh installer |
62 |
generate-po.sh --append-pot functions/hwdetection.sh installer |
generate-po.sh --append-pot functions/hwdetection.sh installer |
63 |
|
generate-po.sh --append-pot functions/bootloader.sh installer |
64 |
|
generate-po.sh --append-pot functions/grub.sh installer |
65 |
|
generate-po.sh --append-pot functions/grub2.sh installer |
66 |
|
generate-po.sh --append-pot functions/initrd-tools.sh installer |
67 |
|
generate-po.sh --append-pot functions/dracut.sh installer |
68 |
|
generate-po.sh --append-pot functions/mkinitrd.sh installer |
69 |
|
generate-po.sh --unique-pot bin/installer.sh.in installer |
70 |
generate-po.sh --generate bin/installer.sh.in installer |
generate-po.sh --generate bin/installer.sh.in installer |
71 |
|
|
72 |
install-mo: locale/installer.pot |
install-mo: locale/installer.pot |
73 |
DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer |
DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer |
74 |
|
|
75 |
clean: |
clean: |
76 |
$(RM) -f bin/installer.sh |
$(RM) -f bin/installer.sh |
77 |
$(RM) -f systemd/installer.service |
$(RM) -f systemd/installer.service |
78 |
|
$(RM) -f locale/installer.pot.dump |
79 |
|
$(RM) -f locale/installer.pot.fixed |
80 |
|
|
81 |
.PHONY: all install |
.PHONY: all install |