--- trunk/installer-simple/Makefile 2014/01/07 15:05:35 2453 +++ tags/installer-simple-0_4_90_20140703_1/Makefile 2014/07/03 09:05:04 2658 @@ -15,16 +15,29 @@ VERSION = $(shell $(CAT) VERSION) SYSTEMDUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd) INSTALLER_TTY = tty1 +INSTALLER_LIVEROOT = /run/initramfs/live +INSTALLER_IMAGEROOT = $(INSTALLER_LIVEROOT)/system +INSTALLER_INSTALLROOT = /mnt/magellan +LOCALE = all: $(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ -e 's:%LIBDIR%:$(LIBDIR):g' \ + -e 's:%SYSCONFDIR%:$(SYSCONFDIR):g' \ bin/installer.sh.in \ > bin/installer.sh - $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ - -e 's:%BINDIR%:$(BINDIR):g' \ + $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ + -e 's:%BINDIR%:$(BINDIR):g' \ + -e 's:%LOCALE%:$(LOCALE):g' \ + -e 's:%INSTALLER_LIVEROOT%:$(INSTALLER_LIVEROOT):g' \ + -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ systemd/installer.service.in \ > systemd/installer.service + $(SED) -e 's:%INSTALLER_LIVEROOT%:$(INSTALLER_LIVEROOT):g' \ + -e 's:%INSTALLER_INSTALLROOT%:$(INSTALLER_INSTALLROOT):g' \ + -e 's:%INSTALLER_IMAGEROOT%:$(INSTALLER_IMAGEROOT):g' \ + conf/installer.conf.in \ + > conf/installer.conf create-dirs: $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) @@ -47,11 +60,10 @@ install-systemd: $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) + $(INSTALL) -m 0644 systemd/installer.service $(DESTDIR)/$(SYSTEMDUNITDIR) $(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 -install: create-dirs install-files install-systemd +install: create-dirs install-files install-systemd install-mo pot: locale/installer.pot generate-po.sh --create-pot bin/installer.sh.in installer @@ -73,6 +85,9 @@ clean: $(RM) -f bin/installer.sh + $(RM) -f conf/installer.conf $(RM) -f systemd/installer.service + $(RM) -f locale/installer.pot.dump + $(RM) -f locale/installer.pot.fixed .PHONY: all install