Annotation of /trunk/installer-simple/Makefile
Parent Directory | Revision Log
Revision 2450 -
(hide annotations)
(download)
Tue Jan 7 15:01:30 2014 UTC (10 years, 8 months ago) by niro
File size: 2954 byte(s)
Tue Jan 7 15:01:30 2014 UTC (10 years, 8 months ago) by niro
File size: 2954 byte(s)
-generate pot from all provided functions
1 | niro | 2322 | # $Id$ |
2 | niro | 2320 | |
3 | niro | 2447 | SYSCONFDIR = /etc |
4 | niro | 2325 | PREFIX = /usr |
5 | LIBDIR = $(PREFIX)/lib/installer | ||
6 | BINDIR = $(PREFIX)/bin | ||
7 | niro | 2320 | |
8 | niro | 2329 | SED = sed |
9 | INSTALL = install | ||
10 | LN_S = ln -snf | ||
11 | RM = rm | ||
12 | niro | 2448 | CAT = cat |
13 | PKGCONFIG = pkg-config | ||
14 | niro | 2329 | |
15 | niro | 2448 | VERSION = $(shell $(CAT) VERSION) |
16 | SYSTEMDUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd) | ||
17 | INSTALLER_TTY = tty1 | ||
18 | |||
19 | niro | 2327 | all: |
20 | niro | 2333 | $(SED) -e 's:%VERSIONTAG%:$(VERSION):' \ |
21 | niro | 2349 | -e 's:%LIBDIR%:$(LIBDIR):g' \ |
22 | niro | 2328 | bin/installer.sh.in \ |
23 | > bin/installer.sh | ||
24 | niro | 2331 | $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g' \ |
25 | -e 's:%BINDIR%:$(BINDIR):g' \ | ||
26 | systemd/installer.service.in \ | ||
27 | > systemd/installer.service | ||
28 | niro | 2320 | |
29 | create-dirs: | ||
30 | niro | 2332 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR) |
31 | niro | 2329 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions |
32 | $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR) | ||
33 | niro | 2320 | |
34 | install-files: | ||
35 | niro | 2332 | $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR) |
36 | niro | 2329 | $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer |
37 | niro | 2449 | $(INSTALL) -m 0644 functions/common.sh $(DESTDIR)$(LIBDIR)/functions/ |
38 | $(INSTALL) -m 0644 functions/common-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
39 | $(INSTALL) -m 0644 functions/installer-dialogs.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
40 | niro | 2335 | $(INSTALL) -m 0644 functions/hwdetection.sh $(DESTDIR)$(LIBDIR)/functions/ |
41 | niro | 2449 | $(INSTALL) -m 0644 functions/bootloader.sh $(DESTDIR)$(LIBDIR)/functions/ |
42 | $(INSTALL) -m 0644 functions/grub.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
43 | $(INSTALL) -m 0644 functions/grub2.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
44 | $(INSTALL) -m 0644 functions/initrd-tools.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
45 | $(INSTALL) -m 0644 functions/dracut.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
46 | $(INSTALL) -m 0644 functions/mkinitrd.sh $(DESTDIR)$(LIBDIR)/functions/ | ||
47 | niro | 2320 | |
48 | niro | 2347 | install-systemd: |
49 | niro | 2331 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR) |
50 | $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants | ||
51 | $(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR) | ||
52 | $(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount | ||
53 | niro | 2320 | |
54 | niro | 2331 | install: create-dirs install-files install-systemd |
55 | |||
56 | niro | 2351 | pot: locale/installer.pot |
57 | generate-po.sh --create-pot bin/installer.sh.in installer | ||
58 | generate-po.sh --append-pot functions/common.sh installer | ||
59 | generate-po.sh --append-pot functions/common-dialogs.sh installer | ||
60 | generate-po.sh --append-pot functions/installer-dialogs.sh installer | ||
61 | generate-po.sh --append-pot functions/hwdetection.sh installer | ||
62 | niro | 2450 | generate-po.sh --append-pot functions/bootloader.sh installer |
63 | generate-po.sh --append-pot functions/grub.sh installer | ||
64 | generate-po.sh --append-pot functions/grub2.sh installer | ||
65 | generate-po.sh --append-pot functions/initrd-tools.sh installer | ||
66 | generate-po.sh --append-pot functions/dracut.sh installer | ||
67 | generate-po.sh --append-pot functions/mkinitrd.sh installer | ||
68 | niro | 2351 | generate-po.sh --generate bin/installer.sh.in installer |
69 | install-mo: locale/installer.pot | ||
70 | DESTDIR=$(DESTDIR) generate-po.sh --compile bin/installer.sh.in installer | ||
71 | |||
72 | niro | 2320 | clean: |
73 | niro | 2329 | $(RM) -f bin/installer.sh |
74 | niro | 2331 | $(RM) -f systemd/installer.service |
75 | niro | 2320 | |
76 | .PHONY: all install |