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