Changeset c49a912 in freewrt


Ignore:
Timestamp:
Jun 5, 2007, 4:52:44 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
7884026
Parents:
c8dd191
Message:
  • 1.0 -> scripts/param.h, paxmirabilis: MFC the new version from trunk
  • both 1.0 and trunk: implement “make targz”, “make tarbz2” (I like the gzip(1)d versions better though)
  • 1.0 -> package/config/Makefile: quieten the “clean” target to be consistent

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rc8dd191 rc49a912  
    5050        @echo '  v            - Same as "all" but with logging to make.log enabled'
    5151        @echo '  slow         - Same, but with sparse output for slow serial lines'
     52        @echo '  targz|tarbz2 - Create a distribution tarball (runs distclean)'
    5253
    5354pkg-help:
     
    99100        @${GMAKE_INV} distclean
    100101        @-rm -rf lbin
    101         @-rm -f make.log .prereq_done
     102        @-rm -f make.log .prereq_done _pax* freewrt.tar.*
    102103
    103104image_clean: .prereq_done
     
    201202        @touch $@
    202203
    203 .PHONY: prereq prereq-noerror
     204_tarball: .prereq_done
     205        rm -f _pax*
     206        ${GMAKE_INV} tools/paxmirabilis-compile
     207        install -c -m 555 tools_build/paxmirabilis/pax _pax
     208        ${GMAKE_INV} distclean
     209        -rm -rf lbin
     210        -rm -f make.log .prereq_done freewrt.tar.*
     211        find . | \
     212            grep -v -e '^.$$' -e '^./_pax' -e '^./prefs\.mk$$' -e '/\.svn' | \
     213            sed -e 's#^\./##' | \
     214            sort >_pax.flst
     215
     216targz: _tarball
     217        ./_pax -w -b 512 -d -M dist -P -t -v -x ustar <_pax.flst | \
     218            gzip -n9 >freewrt.tar.gz
     219        rm -f _pax*
     220
     221tarbgz2: _tarball
     222        ./_pax -w -b 512 -d -M dist -P -t -v -x ustar <_pax.flst | \
     223            bzip2 --best >freewrt.tar.bz2
     224        rm -f _pax*
     225
     226.PHONY: prereq prereq-noerror _tarball targz tarbz2
  • mk/build.mk

    rc8dd191 rc49a912  
    141141        ${MBSH} scripts/restore-defaultconf.sh ${RESTORE_PATTERNS}
    142142
    143 tools/install-lbin:
    144         $(MAKE) -C tools install-lbin
     143tools/%:
     144        $(MAKE) -C tools $(patsubst tools/%,%,$@)
     145
     146distclean:
     147        $(MAKE) -C $(CONFIG) clean
     148        rm -rf $(BUILD_DIR) $(BIN_DIR) $(DISTDIR) ${TOPDIR}/.cfg tools_build
     149        rm -rf $(TOOLS_BUILD_DIR) $(TOOLCHAIN_BUILD_DIR) $(STAGING_PARENT)
     150        rm -f .config* .tmpconfig.h ${TOPDIR}/package/*/info.mk
    145151
    146152endif # ifeq ($(strip $(FWRT_HAVE_DOT_CONFIG)),y)
Note: See TracChangeset for help on using the changeset viewer.