Magellan Linux

Diff of /trunk/mage/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1439 by niro, Mon Jul 25 12:11:33 2011 UTC revision 2226 by niro, Wed Oct 16 07:51:30 2013 UTC
# Line 1  Line 1 
1  # Magellan Package Management  # Magellan Package Management
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/Makefile,v 1.3 2007-11-05 19:36:36 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/Makefile,v 1.3 2007-11-05 19:36:36 niro Exp $
3    
4  DESTDIR=  DESTDIR =
5  VERSION=$(shell cat VERSION)  VERSION = $(shell cat VERSION)
6    ARCH = $(shell uname -m)
7  sysconfdir=/etc  
8  libdir=/usr/lib/mage  ifeq ($(ARCH), x86_64)
9  sbindir=/sbin   MTUNE = generic
10  datadir=/usr/share/doc/mage-0.4  else
11     MTUNE = $(ARCH)
12  srcdir=.  endif
13  srclib=$(srcdir)/usr/lib/mage  
14  srcdoc=$(srcdir)/usr/share/doc/mage-0.3  sysconfdir = /etc
15  srcetc=$(srcdir)/etc  libdir = /usr/lib/mage
16    sbindir = /sbin
17    datadir = /usr/share/doc/mage-$(VERSION)
18    
19    srcdir = .
20    srclib = $(srcdir)/usr/lib/mage
21    srcdoc = $(srcdir)/usr/share/doc/mage
22    srcetc = $(srcdir)/etc
23    
24  all: install  all: install
25    
# Line 30  install-files: Line 37  install-files:
37   install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir)
38   install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir)
39   install -m 0755 $(srclib)/etc-update $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/etc-update $(DESTDIR)$(libdir)
  install -m 0755 $(srclib)/ldd-fix.sh $(DESTDIR)$(libdir)  
40   install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir)   install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir)
41   install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir)
42   install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir)
43   install -m 0644 $(srclib)/mage.rc.global $(DESTDIR)$(libdir)   sed -e "s:@@ARCH@@:$(ARCH):g" \
44     -e "s:@@MTUNE@@:$(MTUNE):g" \
45     $(srclib)/mage.rc.global.in \
46     > $(DESTDIR)$(libdir)/mage.rc.global
47   install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir)
48   install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir)
49   install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir)
# Line 42  install-files: Line 51  install-files:
51   install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir)
52   install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir)
53   install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir)
54     install -m 0644 $(srclib)/smage2.functions.sh $(DESTDIR)$(libdir)
55   install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir)   install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir)
56     install -m 0644 $(srcdir)/ChangeLog $(DESTDIR)$(datadir)
57   echo "$(VERSION)" > $(DESTDIR)$(libdir)/version   echo "$(VERSION)" > $(DESTDIR)$(libdir)/version
58    
59     # include some useful scripts
60     install -m 0755 $(srclib)/ldd-fix.sh $(DESTDIR)$(libdir)
61     install -m 0755 $(srclib)/pkg_all_sources.sh $(DESTDIR)$(libdir)
62     install -m 0755 $(srclib)/autodepend.sh $(DESTDIR)$(libdir)
63     install -m 0755 $(srclib)/search_soname.sh $(DESTDIR)$(libdir)
64    
65  install-symlinks:  install-symlinks:
66   ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage   ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage
67   ln -snf $(libdir)/smage2.sh $(DESTDIR)$(sbindir)/smage2   ln -snf $(libdir)/smage2.sh $(DESTDIR)$(sbindir)/smage2

Legend:
Removed from v.1439  
changed lines
  Added in v.2226