Contents of /trunk/ac-wrapper/Makefile
Parent Directory
|
Revision Log
Revision 1922 -
(show annotations)
(download)
Tue Sep 11 14:15:58 2012 UTC (11 years, 8 months ago) by niro
File size: 968 byte(s)
Tue Sep 11 14:15:58 2012 UTC (11 years, 8 months ago) by niro
File size: 968 byte(s)
-fixed Makefile and do not use full pathes
1 | PNAME = autoconf |
2 | PVER = $(shell cat VERSION) |
3 | |
4 | ARCH := $(patsubst i%86,i386,$(shell uname -m)) |
5 | ifeq (x86_64, $(ARCH)) |
6 | LIB = lib64 |
7 | else |
8 | LIB = lib |
9 | endif |
10 | |
11 | PREFIX = /usr |
12 | BINDIR = $(PREFIX)/bin |
13 | LIBDIR = $(PREFIX)/${LIB} |
14 | 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 | $(INSTALL) -d $(DESTDIR)/${BINDIR} |
28 | $(INSTALL) -d $(DESTDIR)/${LIBDIR} |
29 | $(INSTALL) -d $(DESTDIR)/${LIBDIR}/misc |
30 | $(INSTALL) -d $(DESTDIR)/${DATADIR} |
31 | $(INSTALL) -d $(DESTDIR)/${DOCDIR} |
32 | $(INSTALL) -m 0755 ${WRAPPER} $(DESTDIR)/${LIBDIR}/misc/ |
33 | for i in ${PROGRAMS}; do $(LN_S) ../${LIB}/misc/${WRAPPER} $(DESTDIR)/$(BINDIR)/$$i; done |
34 | $(CAT) ChangeLog | $(GZIP) > $(DESTDIR)/${DOCDIR}/ChangeLog.gz |
35 | $(CAT) VERSION | $(GZIP) > $(DESTDIR)/${DOCDIR}/VERSION.gz |
36 | |
37 | check: |
38 | |
39 | .PHONY = all check install |