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