wok-6.x view tcc/stuff/Makefile.u @ rev 7562
Added gobject-introspection support into libunique packages.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Dec 08 16:22:21 2010 +0000 (2010-12-08) |
parents | 32953ef3a7c7 |
children | 012b01cf2c1d |
line source
1 --- tcc-0.9.25/Makefile
2 +++ tcc-0.9.25/Makefile
3 @@ -197,48 +197,48 @@
5 ifndef CONFIG_WIN32
6 install: $(PROGS) $(LIBTCC1) $(BCHECK_O) libtcc.a tcc.1 tcc-doc.html
7 - mkdir -p "$(bindir)"
8 - $(INSTALL) -s -m755 $(PROGS) "$(bindir)"
9 - mkdir -p "$(mandir)/man1"
10 - $(INSTALL) tcc.1 "$(mandir)/man1"
11 - mkdir -p "$(tccdir)"
12 - mkdir -p "$(tccdir)/include"
13 + mkdir -p "$(DESTDIR)/$(bindir)"
14 + $(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
15 + mkdir -p "$(DESTDIR)/$(mandir)/man1"
16 + $(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1"
17 + mkdir -p "$(DESTDIR)/$(tccdir)"
18 + mkdir -p "$(DESTDIR)/$(tccdir)/include"
19 ifneq ($(LIBTCC1),)
20 - $(INSTALL) -m644 $(LIBTCC1) "$(tccdir)"
21 + $(INSTALL) -m644 $(LIBTCC1) "$(DESTDIR)/$(tccdir)"
22 endif
23 ifneq ($(BCHECK_O),)
24 - $(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
25 + $(INSTALL) -m644 $(BCHECK_O) "$(DESTDIR)/$(tccdir)"
26 endif
27 - $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
28 - mkdir -p "$(docdir)"
29 - $(INSTALL) -m644 tcc-doc.html "$(docdir)"
30 - mkdir -p "$(libdir)"
31 - $(INSTALL) -m644 libtcc.a "$(libdir)"
32 - mkdir -p "$(includedir)"
33 - $(INSTALL) -m644 libtcc.h "$(includedir)"
34 + $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
35 + mkdir -p "$(DESTDIR)/$(docdir)"
36 + $(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
37 + mkdir -p "$(DESTDIR)/$(libdir)"
38 + $(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)"
39 + mkdir -p "$(DESTDIR)/$(includedir)"
40 + $(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)"
42 uninstall:
43 - rm -fv $(foreach P,$(PROGS),"$(bindir)/$P")
44 - rm -fv $(foreach P,$(LIBTCC1) $(BCHECK_O),"$(tccdir)/$P")
45 - rm -fv $(foreach P,$(TCC_INCLUDES),"$(tccdir)/include/$P")
46 - rm -fv "$(docdir)/tcc-doc.html" "$(mandir)/man1/tcc.1"
47 - rm -fv "$(libdir)/libtcc.a" "$(includedir)/libtcc.h"
48 + rm -fv $(foreach P,$(PROGS),"$(DESTDIR)/$(bindir)/$P")
49 + rm -fv $(foreach P,$(LIBTCC1) $(BCHECK_O),"$(DESTDIR)/$(tccdir)/$P")
50 + rm -fv $(foreach P,$(TCC_INCLUDES),"$(DESTDIR)/$(tccdir)/include/$P")
51 + rm -fv "$(docdir)/tcc-doc.html" "$(DESTDIR)/$(mandir)/man1/tcc.1"
52 + rm -fv "$(libdir)/libtcc.a" "$(DESTDIR)/$(includedir)/libtcc.h"
54 else
55 install: $(PROGS) $(LIBTCC1) libtcc.a tcc-doc.html
56 - mkdir -p "$(tccdir)"
57 - mkdir -p "$(tccdir)/lib"
58 - mkdir -p "$(tccdir)/include"
59 - mkdir -p "$(tccdir)/examples"
60 - mkdir -p "$(tccdir)/doc"
61 - mkdir -p "$(tccdir)/libtcc"
62 - $(INSTALL) -s -m755 $(PROGS) "$(tccdir)"
63 - $(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(tccdir)/lib"
64 - cp -r win32/include/. "$(tccdir)/include"
65 - cp -r win32/examples/. "$(tccdir)/examples"
66 -# $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
67 - $(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(tccdir)/doc"
68 - $(INSTALL) -m644 libtcc.a libtcc.h "$(tccdir)/libtcc"
69 + mkdir -p "$(DESTDIR)/$(tccdir)"
70 + mkdir -p "$(DESTDIR)/$(tccdir)/lib"
71 + mkdir -p "$(DESTDIR)/$(tccdir)/include"
72 + mkdir -p "$(DESTDIR)/$(tccdir)/examples"
73 + mkdir -p "$(DESTDIR)/$(tccdir)/doc"
74 + mkdir -p "$(DESTDIR)/$(tccdir)/libtcc"
75 + $(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(tccdir)"
76 + $(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
77 + cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include"
78 + cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples"
79 +# $(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
80 + $(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(DESTDIR)/$(tccdir)/doc"
81 + $(INSTALL) -m644 libtcc.a libtcc.h "$(DESTDIR)/$(tccdir)/libtcc"
82 endif
84 # documentation and man page