Contents of /tags/mage-0_4_81/Makefile
Parent Directory
|
Revision Log
Revision 1598 -
(show annotations)
(download)
Thu Dec 29 15:25:21 2011 UTC (12 years, 4 months ago) by niro
File size: 2438 byte(s)
Thu Dec 29 15:25:21 2011 UTC (12 years, 4 months ago) by niro
File size: 2438 byte(s)
tagged 'mage-0_4_81'
1 | # Magellan Package Management |
2 | # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/Makefile,v 1.3 2007-11-05 19:36:36 niro Exp $ |
3 | |
4 | DESTDIR= |
5 | VERSION=$(shell cat VERSION) |
6 | |
7 | sysconfdir=/etc |
8 | libdir=/usr/lib/mage |
9 | sbindir=/sbin |
10 | datadir=/usr/share/doc/mage-$(VERSION) |
11 | |
12 | srcdir=. |
13 | srclib=$(srcdir)/usr/lib/mage |
14 | srcdoc=$(srcdir)/usr/share/doc/mage |
15 | 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 | install -m 0644 $(srcdir)/etc/etc-update.conf $(DESTDIR)$(sysconfdir) |
27 | install -m 0644 $(srcdir)/etc/mage.rc.example $(DESTDIR)$(sysconfdir) |
28 | 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 | install -m 0644 $(srcdir)/ChangeLog $(DESTDIR)$(datadir) |
47 | echo "$(VERSION)" > $(DESTDIR)$(libdir)/version |
48 | |
49 | install-symlinks: |
50 | ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage |
51 | ln -snf $(libdir)/smage2.sh $(DESTDIR)$(sbindir)/smage2 |
52 | ln -snf $(libdir)/env-rebuild.sh $(DESTDIR)$(sbindir)/env-rebuild |
53 | ln -snf $(libdir)/compressdoc $(DESTDIR)$(sbindir)/compressdoc |
54 | ln -snf $(libdir)/etc-update $(DESTDIR)$(sbindir)/etc-update |
55 | ln -snf $(libdir)/magequery.sh $(DESTDIR)$(sbindir)/magequery |
56 | ln -snf $(libdir)/mage.rc.global $(DESTDIR)$(sysconfdir)/mage.rc.global |
57 | |
58 | install: create-dirs \ |
59 | install-files \ |
60 | install-symlinks |
61 | |
62 | .PHONY: all install |