wok-current diff tcc/stuff/Makefile.u @ rev 3154

Up: pciutils (3.1.2)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun May 24 12:27:37 2009 +0200 (2009-05-24)
parents
children cb3974d9da27
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tcc/stuff/Makefile.u	Sun May 24 12:27:37 2009 +0200
     1.3 @@ -0,0 +1,60 @@
     1.4 +--- tcc-0.9.24/Makefile
     1.5 ++++ tcc-0.9.24/Makefile
     1.6 +@@ -203,28 +203,28 @@
     1.7 + install: tcc_install libinstall
     1.8 + 
     1.9 + tcc_install: $(PROGS) tcc.1 libtcc1.a $(BCHECK_O) tcc-doc.html
    1.10 +-	mkdir -p "$(bindir)"
    1.11 +-	$(INSTALL) -s -m755 $(PROGS) "$(bindir)"
    1.12 ++	mkdir -p "$(DESTDIR)/$(bindir)"
    1.13 ++	$(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
    1.14 + ifndef CONFIG_WIN32
    1.15 +-	mkdir -p "$(mandir)/man1"
    1.16 +-	$(INSTALL) tcc.1 "$(mandir)/man1"
    1.17 ++	mkdir -p "$(DESTDIR)/$(mandir)/man1"
    1.18 ++	$(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1"
    1.19 + endif
    1.20 +-	mkdir -p "$(tccdir)"
    1.21 +-	mkdir -p "$(tccdir)/include"
    1.22 ++	mkdir -p "$(DESTDIR)/$(tccdir)"
    1.23 ++	mkdir -p "$(DESTDIR)/$(tccdir)/include"
    1.24 + ifdef CONFIG_WIN32
    1.25 +-	mkdir -p "$(tccdir)/lib"
    1.26 +-	$(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(tccdir)/lib"
    1.27 +-	cp -r win32/include/. "$(tccdir)/include"
    1.28 +-	cp -r win32/examples/. "$(tccdir)/examples"
    1.29 ++	mkdir -p "$(DESTDIR)/$(tccdir)/lib"
    1.30 ++	$(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
    1.31 ++	cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include"
    1.32 ++	cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples"
    1.33 + else
    1.34 +-	$(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(tccdir)"
    1.35 ++	$(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(DESTDIR)/$(tccdir)"
    1.36 + 	$(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
    1.37 +-                   tcclib.h "$(tccdir)/include"
    1.38 ++                   tcclib.h "$(DESTDIR)/$(tccdir)/include"
    1.39 + endif
    1.40 +-	mkdir -p "$(docdir)"
    1.41 +-	$(INSTALL) -m644 tcc-doc.html "$(docdir)"
    1.42 ++	mkdir -p "$(DESTDIR)/$(docdir)"
    1.43 ++	$(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
    1.44 + ifdef CONFIG_WIN32
    1.45 +-	$(INSTALL) -m644 win32/readme.txt "$(docdir)"
    1.46 ++	$(INSTALL) -m644 win32/readme.txt "$(DESTDIR)/$(docdir)"
    1.47 + endif
    1.48 + 
    1.49 + clean:
    1.50 +@@ -242,10 +242,10 @@
    1.51 + 
    1.52 + # libtcc generation and example
    1.53 + libinstall: libtcc.a 
    1.54 +-	mkdir -p "$(libdir)"
    1.55 +-	$(INSTALL) -m644 libtcc.a "$(libdir)"
    1.56 ++	mkdir -p "$(DESTDIR)/$(libdir)"
    1.57 ++	$(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)"
    1.58 + 	mkdir -p "$(includedir)"
    1.59 +-	$(INSTALL) -m644 libtcc.h "$(includedir)"
    1.60 ++	$(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)"
    1.61 + 
    1.62 + libtcc.o: tcc.c i386-gen.c Makefile
    1.63 + ifdef CONFIG_WIN32