wok-current annotate tcc/stuff/Makefile.u @ rev 1260
Up: udev (126)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Aug 13 19:20:53 2008 +0200 (2008-08-13) |
parents | |
children | cb3974d9da27 |
rev | line source |
---|---|
pascal@769 | 1 --- tcc-0.9.24/Makefile |
pascal@769 | 2 +++ tcc-0.9.24/Makefile |
pascal@769 | 3 @@ -203,28 +203,28 @@ |
pascal@769 | 4 install: tcc_install libinstall |
pascal@769 | 5 |
pascal@769 | 6 tcc_install: $(PROGS) tcc.1 libtcc1.a $(BCHECK_O) tcc-doc.html |
pascal@769 | 7 - mkdir -p "$(bindir)" |
pascal@769 | 8 - $(INSTALL) -s -m755 $(PROGS) "$(bindir)" |
pascal@769 | 9 + mkdir -p "$(DESTDIR)/$(bindir)" |
pascal@769 | 10 + $(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)" |
pascal@769 | 11 ifndef CONFIG_WIN32 |
pascal@769 | 12 - mkdir -p "$(mandir)/man1" |
pascal@769 | 13 - $(INSTALL) tcc.1 "$(mandir)/man1" |
pascal@769 | 14 + mkdir -p "$(DESTDIR)/$(mandir)/man1" |
pascal@769 | 15 + $(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1" |
pascal@769 | 16 endif |
pascal@769 | 17 - mkdir -p "$(tccdir)" |
pascal@769 | 18 - mkdir -p "$(tccdir)/include" |
pascal@769 | 19 + mkdir -p "$(DESTDIR)/$(tccdir)" |
pascal@769 | 20 + mkdir -p "$(DESTDIR)/$(tccdir)/include" |
pascal@769 | 21 ifdef CONFIG_WIN32 |
pascal@769 | 22 - mkdir -p "$(tccdir)/lib" |
pascal@769 | 23 - $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(tccdir)/lib" |
pascal@769 | 24 - cp -r win32/include/. "$(tccdir)/include" |
pascal@769 | 25 - cp -r win32/examples/. "$(tccdir)/examples" |
pascal@769 | 26 + mkdir -p "$(DESTDIR)/$(tccdir)/lib" |
pascal@769 | 27 + $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib" |
pascal@769 | 28 + cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include" |
pascal@769 | 29 + cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples" |
pascal@769 | 30 else |
pascal@769 | 31 - $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(tccdir)" |
pascal@769 | 32 + $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(DESTDIR)/$(tccdir)" |
pascal@769 | 33 $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \ |
pascal@769 | 34 - tcclib.h "$(tccdir)/include" |
pascal@769 | 35 + tcclib.h "$(DESTDIR)/$(tccdir)/include" |
pascal@769 | 36 endif |
pascal@769 | 37 - mkdir -p "$(docdir)" |
pascal@769 | 38 - $(INSTALL) -m644 tcc-doc.html "$(docdir)" |
pascal@769 | 39 + mkdir -p "$(DESTDIR)/$(docdir)" |
pascal@769 | 40 + $(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)" |
pascal@769 | 41 ifdef CONFIG_WIN32 |
pascal@769 | 42 - $(INSTALL) -m644 win32/readme.txt "$(docdir)" |
pascal@769 | 43 + $(INSTALL) -m644 win32/readme.txt "$(DESTDIR)/$(docdir)" |
pascal@769 | 44 endif |
pascal@769 | 45 |
pascal@769 | 46 clean: |
pascal@769 | 47 @@ -242,10 +242,10 @@ |
pascal@769 | 48 |
pascal@769 | 49 # libtcc generation and example |
pascal@769 | 50 libinstall: libtcc.a |
pascal@769 | 51 - mkdir -p "$(libdir)" |
pascal@769 | 52 - $(INSTALL) -m644 libtcc.a "$(libdir)" |
pascal@769 | 53 + mkdir -p "$(DESTDIR)/$(libdir)" |
pascal@769 | 54 + $(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)" |
pascal@769 | 55 mkdir -p "$(includedir)" |
pascal@769 | 56 - $(INSTALL) -m644 libtcc.h "$(includedir)" |
pascal@769 | 57 + $(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)" |
pascal@769 | 58 |
pascal@769 | 59 libtcc.o: tcc.c i386-gen.c Makefile |
pascal@769 | 60 ifdef CONFIG_WIN32 |