15 |
VERSION = $(shell $(CAT) VERSION) |
VERSION = $(shell $(CAT) VERSION) |
16 |
SYSTEMDUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd) |
SYSTEMDUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd) |
17 |
INSTALLER_TTY = tty1 |
INSTALLER_TTY = tty1 |
18 |
|
INSTALLER_IMAGEROOT = /run/initramfs/live/system |
19 |
|
INSTALLER_INSTALLROOT = /mnt/magellan |
20 |
|
LOCALE = |
21 |
|
|
22 |
all: |
all: |
23 |
$(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
$(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
24 |
-e 's:%LIBDIR%:$(LIBDIR):g' \ |
-e 's:%LIBDIR%:$(LIBDIR):g' \ |
25 |
|
-e 's:%SYSCONFDIR%:$(SYSCONFDIR):g' \ |
26 |
bin/installer.sh.in \ |
bin/installer.sh.in \ |
27 |
> bin/installer.sh |
> bin/installer.sh |
28 |
$(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
$(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
29 |
-e 's:%BINDIR%:$(BINDIR):g' \ |
-e 's:%BINDIR%:$(BINDIR):g' \ |
30 |
|
-e 's:%LOCALE%:$(LOCALE):g' \ |
31 |
systemd/installer.service.in \ |
systemd/installer.service.in \ |
32 |
> systemd/installer.service |
> systemd/installer.service |
33 |
|
$(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 |
|
|
38 |
create-dirs: |
create-dirs: |
39 |
$(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) |
$(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) |
56 |
|
|
57 |
install-systemd: |
install-systemd: |
58 |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) |
59 |
|
$(INSTALL) -m 0644 systemd/installer.service $(DESTDIR)/$(SYSTEMDUNITDIR) |
60 |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants |
$(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants |
|
$(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR) |
|
|
$(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount |
|
61 |
|
|
62 |
install: create-dirs install-files install-systemd |
install: create-dirs install-files install-systemd install-mo |
63 |
|
|
64 |
pot: locale/installer.pot |
pot: locale/installer.pot |
65 |
generate-po.sh --create-pot bin/installer.sh.in installer |
generate-po.sh --create-pot bin/installer.sh.in installer |
81 |
|
|
82 |
clean: |
clean: |
83 |
$(RM) -f bin/installer.sh |
$(RM) -f bin/installer.sh |
84 |
|
$(RM) -f conf/installer.conf |
85 |
$(RM) -f systemd/installer.service |
$(RM) -f systemd/installer.service |
86 |
|
$(RM) -f locale/installer.pot.dump |
87 |
|
$(RM) -f locale/installer.pot.fixed |
88 |
|
|
89 |
.PHONY: all install |
.PHONY: all install |