Annotation of /tags/installer-simple-0_4_90_20140703_1/Makefile
Parent Directory | Revision Log
Revision 2332 -
(hide annotations)
(download)
Fri Jan 3 13:58:23 2014 UTC (10 years, 8 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 1334 byte(s)
Fri Jan 3 13:58:23 2014 UTC (10 years, 8 months ago) by niro
Original Path: trunk/installer-simple/Makefile
File size: 1334 byte(s)
-introduce installer.conf
1 | niro | 2322 | # $Id$ |
2 | niro | 2320 | |
3 | niro | 2330 | VERSION = $(shell cat VERSION) |
4 | niro | 2331 | SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir systemd) |
5 | INSTALLER_TTY = tty1 | ||
6 | niro | 2320 | |
7 | niro | 2332 | SYSCONFDIR = etc |
8 | niro | 2325 | PREFIX = /usr |
9 | LIBDIR = $(PREFIX)/lib/installer | ||
10 | BINDIR = $(PREFIX)/bin | ||
11 | niro | 2320 | |
12 | niro | 2329 | SED = sed |
13 | INSTALL = install | ||
14 | LN_S = ln -snf | ||
15 | RM = rm | ||
16 | |||
17 | niro | 2327 | all: |
18 | niro | 2329 | $(SED) 's:%VERSIONTAG%:$(VERSION):' \ |
19 | niro | 2328 | bin/installer.sh.in \ |
20 | > bin/installer.sh | ||
21 | niro | 2331 | $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
22 | -e 's:%BINDIR%:$(BINDIR):g' \ | ||
23 | systemd/installer.service.in \ | ||
24 | > systemd/installer.service | ||
25 | niro | 2320 | |
26 | create-dirs: | ||
27 | niro | 2332 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) |
28 | niro | 2329 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions |
29 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR) | ||
30 | niro | 2320 | |
31 | install-files: | ||
32 | niro | 2332 | $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) |
33 | niro | 2329 | $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer |
34 | $(INSTALL) -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
35 | niro | 2320 | |
36 | niro | 2331 | install-systemd |
37 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) | ||
38 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants | ||
39 | $(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR) | ||
40 | $(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount | ||
41 | niro | 2320 | |
42 | niro | 2331 | install: create-dirs install-files install-systemd |
43 | |||
44 | niro | 2320 | clean: |
45 | niro | 2329 | $(RM) -f bin/installer.sh |
46 | niro | 2331 | $(RM) -f systemd/installer.service |
47 | niro | 2320 | |
48 | .PHONY: all install |