Manuel,
This is the result of an early attempt at reducing the size of the output Makefile. It went from 117k to ~36k using a combination of cmd define/endef in makefile-functions and using Dan's variable scheme. I have only applied these mods to CLFS2 but will move into the other books shortly.
  G



031-linux-headers:  028-creating-sysfile
  @$(call echo_message, Building)
  @./progress_bar.sh $@ &
echo -e "\n`date`\n\nKB: `du -skx --exclude=jhalfs $(MOUNT_PT)`\n" >logs/031-linux-headers
  @$(call remove_existing_dir, linux-headers-2.6.17.6-07202006.tar.bz2 )
  @$(call unpack, linux-headers-2.6.17.6-07202006.tar.bz2 )
  @$(call get_pkg_root )
@( time { $(SU_LUSER) "source $(LUSER_HOME)/.bashrc && $(CMDSDIR)/cross-tools/$@" >> logs/$@ 2>&1; } ) 2>> logs/$@ && \
$(PRT_DU) >> logs/$@
  @$(call remove_build_dirs,linux-headers)
  @$(call housekeeping)

--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to