Annotation of /branches/mage-next/Makefile
Parent Directory | Revision Log
Revision 368 -
(hide annotations)
(download)
Fri Apr 14 17:07:44 2006 UTC (18 years, 6 months ago) by niro
Original Path: trunk/mage/Makefile
File size: 2420 byte(s)
Fri Apr 14 17:07:44 2006 UTC (18 years, 6 months ago) by niro
Original Path: trunk/mage/Makefile
File size: 2420 byte(s)
fixed missing etc files
1 | niro | 363 | # Magellan Package Management |
2 | niro | 368 | # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/Makefile,v 1.2 2006-04-14 17:07:44 niro Exp $ |
3 | niro | 363 | |
4 | DESTDIR= | ||
5 | |||
6 | sysconfdir=/etc | ||
7 | libdir=/usr/lib/mage | ||
8 | sbindir=/sbin | ||
9 | datadir=/usr/share/doc/mage-0.4 | ||
10 | |||
11 | srcdir=. | ||
12 | srclib=$(srcdir)/usr/lib/mage | ||
13 | srcdoc=$(srcdir)/usr/share/doc/mage-0.3 | ||
14 | srcetc=$(srcdir)/etc | ||
15 | |||
16 | all: install | ||
17 | |||
18 | create-dirs: | ||
19 | install -d -m 0755 $(DESTDIR)$(sysconfdir) | ||
20 | install -d -m 0755 $(DESTDIR)$(libdir) | ||
21 | install -d -m 0755 $(DESTDIR)$(sbindir) | ||
22 | install -d -m 0755 $(DESTDIR)$(datadir) | ||
23 | |||
24 | install-files: | ||
25 | niro | 368 | install -m 0644 $(srcdir)/etc/etc-update.conf $(DESTDIR)$(sysconfdir) |
26 | install -m 0644 $(srcdir)/etc/mage.rc.example $(DESTDIR)$(sysconfdir) | ||
27 | niro | 363 | install -m 0755 $(srclib)/compressdoc $(DESTDIR)$(libdir) |
28 | install -m 0755 $(srclib)/create_desktop_app.sh $(DESTDIR)$(libdir) | ||
29 | install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir) | ||
30 | install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir) | ||
31 | install -m 0755 $(srclib)/etc-update $(DESTDIR)$(libdir) | ||
32 | install -m 0755 $(srclib)/ldd-fix.sh $(DESTDIR)$(libdir) | ||
33 | install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir) | ||
34 | install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir) | ||
35 | install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir) | ||
36 | install -m 0644 $(srclib)/mage.rc.global $(DESTDIR)$(libdir) | ||
37 | install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir) | ||
38 | install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir) | ||
39 | install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir) | ||
40 | install -m 0755 $(srclib)/museradd $(DESTDIR)$(libdir) | ||
41 | install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir) | ||
42 | install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir) | ||
43 | install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir) | ||
44 | install -m 0755 $(srclib)/writeprotected $(DESTDIR)$(libdir) | ||
45 | install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir) | ||
46 | echo "$$(date +%Y%m%d)-cvs" > $(DESTDIR)$(libdir)/version | ||
47 | |||
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 |