blob: 376e58fdb3567606935e2e4398cc83aba842a95d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#
--- units-1.80/Makefile.in~makefile 2002-05-03 02:15:08.000000000 +0100
+++ units-1.80/Makefile.in 2003-11-04 16:53:31.000000000 +0000
@@ -26,6 +26,7 @@
srcdir = @srcdir@
CC = @CC@
+DESTDIR =
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
@@ -95,19 +96,19 @@
$(CC) $(LDFLAGS) -o units $(OBJECTS) parse.tab.o getopt.o getopt1.o @STRFUNC@ $(LIBS)
install: units units.dat install-doc
- $(srcdir)/mkinstalldirs $(bindir) $(datadir)
- $(INSTALL_PROGRAM) units $(bindir)/`echo units|sed '$(transform)'`
- $(INSTALL_DATA) $(srcdir)/units.dat $(datadir)/units.dat
+ $(srcdir)/mkinstalldirs $(DESTDIR)/$(bindir) $(datadir)
+ $(INSTALL_PROGRAM) units $(DESTDIR)/$(bindir)/`echo units|sed '$(transform)'`
+ $(INSTALL_DATA) $(srcdir)/units.dat $(DESTDIR)/$(datadir)/units.dat
install-strip: units units.dat install-doc
- $(INSTALL_PROGRAM) -s units $(bindir)/`echo units|sed '$(transform)'`
- $(INSTALL_DATA) $(srcdir)/units.dat $(datadir)/units.dat
+ $(INSTALL_PROGRAM) -s units $(DESTDIR)/$(bindir)/`echo units|sed '$(transform)'`
+ $(INSTALL_DATA) $(srcdir)/units.dat $(DESTDIR)/$(datadir)/units.dat
install-doc: install-man install-info
install-man: units.1
- $(srcdir)/mkinstalldirs $(mandir)/man1
- $(INSTALL_DATA) units.1 $(mandir)/man1/`echo units|sed '$(transform)'`.1
+ $(srcdir)/mkinstalldirs $(DESTDIR)/$(mandir)/man1
+ $(INSTALL_DATA) units.1 $(DESTDIR)/$(mandir)/man1/`echo units|sed '$(transform)'`.1
units.man: units.texinfo texi2man
./texi2man units.texinfo > units.man
@@ -115,10 +116,10 @@
units.1: units.man
sed s!@DATAFILE@!@UDAT@units.dat! $(srcdir)/units.man > units.1
-install-info: $(infodir)/units.info
+install-info: $(DESTDIR)/$(infodir)/units.info
-$(infodir)/units.info: units.info
- $(srcdir)/mkinstalldirs $(infodir)
+$(DESTDIR)/$(infodir)/units.info: units.info
+ $(srcdir)/mkinstalldirs $(DESTDIR)/$(infodir)
# There may be a newer info file in . than in srcdir.
-if test -f units.info; then d=.; \
else d=$(srcdir); fi; \
@@ -128,11 +129,11 @@
# line so we notice real errors from install-info.
# We use `$(SHELL) -c' because some shells do not
# fail gracefully when there is an unknown command.
- if test -f $(infodir)/dir; then \
+ if test -f $(DESTDIR)/$(infodir)/dir; then \
if $(SHELL) -c 'install-info --version' \
>/dev/null 2>&1; then \
- install-info --dir-file=$(infodir)/dir \
- $(infodir)/units.info; \
+ install-info --dir-file=$(DESTDIR)/$(infodir)/dir \
+ $(DESTDIR)/$(infodir)/units.info; \
else true; fi \
else true; fi
--- units-1.80/vim~makefile
+++ units-1.80/vim
|