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 2228 by niro, Wed Oct 16 07:52:41 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 $  # $Id$
3    
4  DESTDIR=  VERSION = $(shell cat VERSION)
5  VERSION=$(shell cat VERSION)  ARCH = $(shell uname -m)
6    
7  sysconfdir=/etc  ifeq ($(ARCH), x86_64)
8  libdir=/usr/lib/mage   MTUNE = generic
9  sbindir=/sbin  else
10  datadir=/usr/share/doc/mage-0.4   MTUNE = $(ARCH)
11    endif
12  srcdir=.  
13  srclib=$(srcdir)/usr/lib/mage  sysconfdir = /etc
14  srcdoc=$(srcdir)/usr/share/doc/mage-0.3  libdir = /usr/lib/mage
15  srcetc=$(srcdir)/etc  sbindir = /sbin
16    datadir = /usr/share/doc/mage-$(VERSION)
17    
18    srcdir = .
19    srclib = $(srcdir)/usr/lib/mage
20    srcdoc = $(srcdir)/usr/share/doc/mage
21    srcetc = $(srcdir)/etc
22    
23  all: install  all: install
24    
# Line 30  install-files: Line 36  install-files:
36   install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/depwalker.sh $(DESTDIR)$(libdir)
37   install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/env-rebuild.sh $(DESTDIR)$(libdir)
38   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)  
39   install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir)   install -m 0644 $(srclib)/mage4.functions.sh $(DESTDIR)$(libdir)
40   install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mage4.sh $(DESTDIR)$(libdir)
41   install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/magequery.sh $(DESTDIR)$(libdir)
42   install -m 0644 $(srclib)/mage.rc.global $(DESTDIR)$(libdir)   sed -e "s:@@ARCH@@:$(ARCH):g" \
43     -e "s:@@MTUNE@@:$(MTUNE):g" \
44     $(srclib)/mage.rc.global.in \
45     > $(DESTDIR)$(libdir)/mage.rc.global
46   install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mgroupadd $(DESTDIR)$(libdir)
47   install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mgroupdel $(DESTDIR)$(libdir)
48   install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/mkinfodir $(DESTDIR)$(libdir)
# Line 42  install-files: Line 50  install-files:
50   install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/muserdel $(DESTDIR)$(libdir)
51   install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/pkgbuild_dir.sh $(DESTDIR)$(libdir)
52   install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir)   install -m 0755 $(srclib)/smage2.sh $(DESTDIR)$(libdir)
53     install -m 0644 $(srclib)/smage2.functions.sh $(DESTDIR)$(libdir)
54   install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir)   install -m 0644 $(srcdoc)/template.{mage,smage2} $(DESTDIR)$(datadir)
55     install -m 0644 $(srcdir)/ChangeLog $(DESTDIR)$(datadir)
56   echo "$(VERSION)" > $(DESTDIR)$(libdir)/version   echo "$(VERSION)" > $(DESTDIR)$(libdir)/version
57    
58     # include some useful scripts
59     install -m 0755 $(srclib)/ldd-fix.sh $(DESTDIR)$(libdir)
60     install -m 0755 $(srclib)/pkg_all_sources.sh $(DESTDIR)$(libdir)
61     install -m 0755 $(srclib)/autodepend.sh $(DESTDIR)$(libdir)
62     install -m 0755 $(srclib)/search_soname.sh $(DESTDIR)$(libdir)
63    
64  install-symlinks:  install-symlinks:
65   ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage   ln -snf $(libdir)/mage4.sh $(DESTDIR)$(sbindir)/mage
66   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.2228