Annotation of /trunk/installer/Makefile
Parent Directory
|
Revision Log
Revision 1039 -
(hide annotations)
(download)
Sun May 30 19:31:03 2010 UTC (13 years, 11 months ago) by niro
File size: 1966 byte(s)
Sun May 30 19:31:03 2010 UTC (13 years, 11 months ago) by niro
File size: 1966 byte(s)
-added global functions
1 | niro | 1036 | # Magellan Installer |
2 | # $Id$ | ||
3 | |||
4 | DESTDIR= | ||
5 | |||
6 | sysconfdir=/etc | ||
7 | datadir=/usr/share/installer | ||
8 | sbindir=/usr/sbin | ||
9 | |||
10 | srcdir=. | ||
11 | |||
12 | all: install | ||
13 | |||
14 | niro | 1039 | create-dirs-common: |
15 | niro | 1036 | install -d -m 0755 $(DESTDIR)$(sysconfdir) |
16 | install -d -m 0755 $(DESTDIR)$(datadir) | ||
17 | install -d -m 0755 $(DESTDIR)$(datadir)/data | ||
18 | install -d -m 0755 $(DESTDIR)$(datadir)/include | ||
19 | niro | 1039 | |
20 | create-dirs-ncurses: | ||
21 | niro | 1036 | install -d -m 0755 $(DESTDIR)$(datadir)/ncurses-gui |
22 | niro | 1039 | install -d -m 0755 $(DESTDIR)$(sbindir) |
23 | |||
24 | create-dirs-gtk: | ||
25 | niro | 1036 | install -d -m 0755 $(DESTDIR)$(datadir)/gtk-gui |
26 | install -d -m 0755 $(DESTDIR)$(sbindir) | ||
27 | |||
28 | niro | 1039 | install-files-common: |
29 | niro | 1036 | install -m 0644 $(srcdir)/etc/installer.conf $(DESTDIR)$(sysconfdir) |
30 | niro | 1037 | for i in $(srcdir)/data/*; do install -m 0644 $${i} $(DESTDIR)$(datadir)/data/$(basename $i); done |
31 | for i in $(srcdir)/include/*; do install -m 0755 $${i} $(DESTDIR)$(datadir)/include/$(basename $i); done | ||
32 | niro | 1036 | # fix datadir location |
33 | echo "INSTALLER_DIR=\"$(datadir)\"" > $(DESTDIR)$(sysconfdir)/installer.conf | ||
34 | |||
35 | niro | 1039 | install-files-ncurses: |
36 | install -m 0755 $(srcdir)/installer-ncurses.sh $(DESTDIR)$(datadir) | ||
37 | for i in $(srcdir)/ncurses-gui/*; do install -m 0644 $${i} $(DESTDIR)$(datadir)/ncurses-gui/$(basename $i); done | ||
38 | |||
39 | install-files-gtk: | ||
40 | install -m 0755 $(srcdir)/installer-gtk.sh $(DESTDIR)$(datadir) | ||
41 | install -m 0755 $(srcdir)/guification.sh $(DESTDIR)$(datadir) | ||
42 | for i in $(srcdir)/gtk-gui/*; do install -m 0644 $${i} $(DESTDIR)$(datadir)/gtk-gui/$(basename $i); done | ||
43 | |||
44 | install-symlinks-ncurses: | ||
45 | niro | 1036 | ln -snf $(datadir)/installer-ncurses.sh $(DESTDIR)$(sbindir)/installer-ncurses |
46 | niro | 1039 | |
47 | install-symlinks-gtk: | ||
48 | niro | 1036 | ln -snf $(datadir)/installer-gtk.sh $(DESTDIR)$(sbindir)/installer-gtk |
49 | |||
50 | niro | 1039 | install-common: create-dirs-common \ |
51 | install-files-common | ||
52 | niro | 1036 | |
53 | niro | 1039 | install-ncurses: create-dirs-ncurses \ |
54 | install-files-ncurses \ | ||
55 | install-symlinks-ncurses \ | ||
56 | |||
57 | install-gtk: create-dirs-gtk \ | ||
58 | install-files-gtk \ | ||
59 | install-symlinks-gtk | ||
60 | |||
61 | install: install-common \ | ||
62 | install-ncurses \ | ||
63 | install-gtk | ||
64 | |||
65 | .PHONY: all install install-common install-ncurses install-gtk |