wok-current view tcc/stuff/Makefile.u @ rev 2303

Ajaxterm: set blue theme
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 24 17:25:13 2009 +0000 (2009-02-24)
parents
children cb3974d9da27
line source
1 --- tcc-0.9.24/Makefile
2 +++ tcc-0.9.24/Makefile
3 @@ -203,28 +203,28 @@
4 install: tcc_install libinstall
6 tcc_install: $(PROGS) tcc.1 libtcc1.a $(BCHECK_O) tcc-doc.html
7 - mkdir -p "$(bindir)"
8 - $(INSTALL) -s -m755 $(PROGS) "$(bindir)"
9 + mkdir -p "$(DESTDIR)/$(bindir)"
10 + $(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
11 ifndef CONFIG_WIN32
12 - mkdir -p "$(mandir)/man1"
13 - $(INSTALL) tcc.1 "$(mandir)/man1"
14 + mkdir -p "$(DESTDIR)/$(mandir)/man1"
15 + $(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1"
16 endif
17 - mkdir -p "$(tccdir)"
18 - mkdir -p "$(tccdir)/include"
19 + mkdir -p "$(DESTDIR)/$(tccdir)"
20 + mkdir -p "$(DESTDIR)/$(tccdir)/include"
21 ifdef CONFIG_WIN32
22 - mkdir -p "$(tccdir)/lib"
23 - $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(tccdir)/lib"
24 - cp -r win32/include/. "$(tccdir)/include"
25 - cp -r win32/examples/. "$(tccdir)/examples"
26 + mkdir -p "$(DESTDIR)/$(tccdir)/lib"
27 + $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
28 + cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include"
29 + cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples"
30 else
31 - $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(tccdir)"
32 + $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(DESTDIR)/$(tccdir)"
33 $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
34 - tcclib.h "$(tccdir)/include"
35 + tcclib.h "$(DESTDIR)/$(tccdir)/include"
36 endif
37 - mkdir -p "$(docdir)"
38 - $(INSTALL) -m644 tcc-doc.html "$(docdir)"
39 + mkdir -p "$(DESTDIR)/$(docdir)"
40 + $(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
41 ifdef CONFIG_WIN32
42 - $(INSTALL) -m644 win32/readme.txt "$(docdir)"
43 + $(INSTALL) -m644 win32/readme.txt "$(DESTDIR)/$(docdir)"
44 endif
46 clean:
47 @@ -242,10 +242,10 @@
49 # libtcc generation and example
50 libinstall: libtcc.a
51 - mkdir -p "$(libdir)"
52 - $(INSTALL) -m644 libtcc.a "$(libdir)"
53 + mkdir -p "$(DESTDIR)/$(libdir)"
54 + $(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)"
55 mkdir -p "$(includedir)"
56 - $(INSTALL) -m644 libtcc.h "$(includedir)"
57 + $(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)"
59 libtcc.o: tcc.c i386-gen.c Makefile
60 ifdef CONFIG_WIN32