Ignore:
Timestamp:
08/11/2006 03:34:10 AM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
6a9d41e
Parents:
755cd36
Message:

Mods to most files to allow for reduction of internal functions and reduction in the size of the generated makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/makefile-functions

    r755cd36 r398a037  
    1616endef
    1717
     18define remove_existing_dirs
     19  @PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \
     20  ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
     21  rm -rf $(SRCSDIR)/$$ROOT && \
     22  rm -rf $(SRCSDIR)/$${ROOT%-*}-build
     23endef
     24
     25define remove_existing_dirs2
     26  @PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \
     27  ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
     28  rm -rf $(SRC)/$$ROOT && \
     29  rm -rf $(SRC)/$${ROOT-*}-build
     30endef
     31
     32define remove_build_dirs
     33  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     34  rm -rf $(SRCSDIR)/$$ROOT && \
     35  rm -rf $(SRCSDIR)/$(1)-build
     36endef
     37
     38define remove_build_dirs2
     39  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     40  rm -rf $(SRC)/$$ROOT && \
     41  rm -rf $(SRC)/$(1)-build
     42endef
     43
     44define housekeeping
     45  @touch  $@ && \
     46  sleep .25 && \
     47  echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \
     48  echo --------------------------------------------------------------------------------$(WHITE)
     49
     50endef
     51
     52define get_pkg_root
     53  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     54  if [ "$(1)" != "nouser" ]; then \
     55    echo "export PKGDIR=$(SRCSDIR)/$$ROOT" > envars; \
     56    chown -R $(LUSER) $(SRCSDIR)/$$ROOT; \
     57  else \
     58    echo "export PKGDIR=$(crSRCSDIR)/$$ROOT" > envars; \
     59  fi;
     60endef
     61
     62define get_pkg_root2
     63  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     64  echo "export PKGDIR=$(SRC)/$$ROOT" > envars
     65endef
     66
    1867define unpack
    19   @cd $(MOUNT_PT)$(SRC) && \
     68  @cd $(SRCSDIR) && \
    2069  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
    2170endef
    2271
    2372define unpack2
    24   @cd $(MOUNT_PT)$(SRC) && \
     73  @cd $(SRCSDIR) && \
    2574  /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
    2675endef
Note: See TracChangeset for help on using the changeset viewer.