Magellan Linux

Annotation of /tags/ac-wrapper-10_1/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1922 - (hide annotations) (download)
Tue Sep 11 14:15:58 2012 UTC (11 years, 8 months ago) by niro
Original Path: trunk/ac-wrapper/Makefile
File size: 968 byte(s)
-fixed Makefile and do not use full pathes
1 niro 1922 PNAME = autoconf
2 niro 1909 PVER = $(shell cat VERSION)
3    
4 niro 1922 ARCH := $(patsubst i%86,i386,$(shell uname -m))
5 niro 1909 ifeq (x86_64, $(ARCH))
6 niro 1922 LIB = lib64
7 niro 1909 else
8 niro 1922 LIB = lib
9 niro 1909 endif
10    
11 niro 1922 PREFIX = /usr
12 niro 1909 BINDIR = $(PREFIX)/bin
13 niro 1922 LIBDIR = $(PREFIX)/${LIB}
14 niro 1909 DATADIR = $(PREFIX)/share
15     DOCDIR = $(DATADIR)/doc/${PNAME}-${PVER}
16    
17     INSTALL = install
18     LN_S = ln -s
19     CAT = cat
20     GZIP = gzip -9
21     WRAPPER = ac-wrapper.sh
22     PROGRAMS = autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames
23    
24     all:
25    
26     install:
27 niro 1922 $(INSTALL) -d $(DESTDIR)/${BINDIR}
28     $(INSTALL) -d $(DESTDIR)/${LIBDIR}
29     $(INSTALL) -d $(DESTDIR)/${LIBDIR}/misc
30     $(INSTALL) -d $(DESTDIR)/${DATADIR}
31 niro 1909 $(INSTALL) -d $(DESTDIR)/${DOCDIR}
32 niro 1922 $(INSTALL) -m 0755 ${WRAPPER} $(DESTDIR)/${LIBDIR}/misc/
33     for i in ${PROGRAMS}; do $(LN_S) ../${LIB}/misc/${WRAPPER} $(DESTDIR)/$(BINDIR)/$$i; done
34 niro 1909 $(CAT) ChangeLog | $(GZIP) > $(DESTDIR)/${DOCDIR}/ChangeLog.gz
35     $(CAT) VERSION | $(GZIP) > $(DESTDIR)/${DOCDIR}/VERSION.gz
36    
37     check:
38    
39     .PHONY = all check install