Changeset 46306f3 in freewrt for tools


Ignore:
Timestamp:
Jun 28, 2007, 2:46:44 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
671e142
Parents:
8ff35c8
Message:

this might fix bsd make (mkdep(1)) with ccache

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2984 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/Makefile

    r8ff35c8 r46306f3  
    4141TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
    4242
    43 all: install
     43all: install wrappers
    4444install: $(TARGETS_INSTALL) ${STAGING_DIR}/etc/ipkg.conf
    4545install-lbin: $(TARGETS_INSTALL_LBIN)
    4646clean: $(TARGETS_CLEAN)
     47
     48wrappers:
     49ifneq ($(strip ${FWRT_USE_CCACHE}),)
     50        @for what in ${TARGET_CROSS}gcc ${TARGET_CROSS}g++; do \
     51                if [[ ! -x ${TOPDIR}/lbin/ccache-$$what ]]; then \
     52                        rm -f ${TOPDIR}/lbin/ccache-$$what; \
     53                        printf '#!/bin/sh\nexec ccache %s "$$@"\n' \
     54                            $$what >${TOPDIR}/lbin/ccache-$$what; \
     55                        chmod 0555 ${TOPDIR}/lbin/ccache-$$what; \
     56                fi; \
     57        done
     58endif
    4759
    4860${STAGING_DIR} ${STAGING_DIR}/etc ${STAGING_TOOLS}:
Note: See TracChangeset for help on using the changeset viewer.