Annotation of /trunk/mage/Makefile
Parent Directory | Revision Log
Revision 1441 -
(hide annotations)
(download)
Mon Jul 25 12:15:58 2011 UTC (13 years, 3 months ago) by niro
File size: 2380 byte(s)
Mon Jul 25 12:15:58 2011 UTC (13 years, 3 months ago) by niro
File size: 2380 byte(s)
-handle renamed src-doc dir -install doc data to versionized datadir
1 | niro | 363 | # Magellan Package Management |
2 | niro | 603 | # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/Makefile,v 1.3 2007-11-05 19:36:36 niro Exp $ |
3 | niro | 363 | |
4 | DESTDIR= | ||
5 | niro | 1439 | VERSION=$(shell cat VERSION) |
6 | niro | 363 | |
7 | sysconfdir=/etc | ||
8 | libdir=/usr/lib/mage | ||
9 | sbindir=/sbin | ||
10 | niro | 1441 | datadir=/usr/share/doc/mage-$(VERSION) |
11 | niro | 363 | |
12 | srcdir=. | ||
13 | srclib=$(srcdir)/usr/lib/mage | ||
14 | niro | 1441 | srcdoc=$(srcdir)/usr/share/doc/mage |
15 | niro | 363 | srcetc=$(srcdir)/etc |
16 | |||
17 | all: install | ||
18 | |||
19 | create-dirs: | ||
20 | install -d -m 0755 $(DESTDIR)$(sysconfdir) | ||
21 | install -d -m 0755 $(DESTDIR)$(libdir) | ||
22 | install -d -m 0755 $(DESTDIR)$(sbindir) | ||
23 | install -d -m 0755 $(DESTDIR)$(datadir) | ||
24 | |||
25 | install-files: | ||
26 | niro | 368 | install -m 0644 $(srcdir)/etc/etc-update.conf $(DESTDIR)$(sysconfdir) |
27 | install -m 0644 $(srcdir)/etc/mage.rc.example $(DESTDIR)$(sysconfdir) | ||
28 | niro | 363 | install -m 0755 $(srclib)/compressdoc $(DESTDIR)$(libdir) |
29 | install -m 0755 $(srclib)/create_desktop_app.sh $(DESTDIR)$(libdir) | ||
30 | install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir) | ||
31 | install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir) | ||
32 | install -m 0755 $(srclib)/etc-update $(DESTDIR)$(libdir) | ||
33 | install -m 0755 $(srclib)/ldd-fix.sh $(DESTDIR)$(libdir) | ||
34 | install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir) | ||
35 | install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir) | ||
36 | install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir) | ||
37 | install -m 0644 $(srclib)/mage.rc.global $(DESTDIR)$(libdir) | ||
38 | install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir) | ||
39 | install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir) | ||
40 | install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir) | ||
41 | install -m 0755 $(srclib)/museradd $(DESTDIR)$(libdir) | ||
42 | install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir) | ||
43 | install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir) | ||
44 | install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir) | ||
45 | install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir) | ||
46 | niro | 1439 | echo "$(VERSION)" > $(DESTDIR)$(libdir)/version |
47 | niro | 363 | |
48 | install-symlinks: | ||
49 | ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage | ||
50 | ln -snf $(libdir)/smage2.sh $(DESTDIR)$(sbindir)/smage2 | ||
51 | ln -snf $(libdir)/env-rebuild.sh $(DESTDIR)$(sbindir)/env-rebuild | ||
52 | ln -snf $(libdir)/compressdoc $(DESTDIR)$(sbindir)/compressdoc | ||
53 | ln -snf $(libdir)/etc-update $(DESTDIR)$(sbindir)/etc-update | ||
54 | ln -snf $(libdir)/magequery.sh $(DESTDIR)$(sbindir)/magequery | ||
55 | ln -snf $(libdir)/mage.rc.global $(DESTDIR)$(sysconfdir)/mage.rc.global | ||
56 | |||
57 | install: create-dirs \ | ||
58 | install-files \ | ||
59 | install-symlinks | ||
60 | |||
61 | .PHONY: all install |