Changeset 50d34d3 in freewrt


Ignore:
Timestamp:
Jul 21, 2006, 2:02:55 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
a9b77aa
Parents:
d419478
Message:

remove redundant code, and these mostlyclean/rebuild stuff
(the latter discussed with wbx@ last weekend)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/rules.mk

    rd419478 r50d34d3  
    2525$$(IDIR_$(1))/CONTROL/control: $(WRKBUILD)/.prepared
    2626        $(SCRIPT_DIR)/make-ipkg-dir.sh $$(IDIR_$(1)) ./ipkg/$(2).control $(3) $(4)
    27         if [ "$$(IDEPEND_$(1))" != "" ]; then echo "Depends: $$(IDEPEND_$(1))" >> $$(IDIR_$(1))/CONTROL/control; fi
     27        [ -n "$$(IDEPEND_$(1))" ] && echo "Depends: $$(IDEPEND_$(1))" >>$$(IDIR_$(1))/CONTROL/control
    2828        for file in conffiles preinst postinst prerm postrm; do \
    2929                [ -f ./ipkg/$(2).$$$$file ] && cp ./ipkg/$(2).$$$$file $$(IDIR_$(1))/CONTROL/$$$$file || true; \
     
    5050$(WRKBUILD)/.prepared: ${DISTFILES}
    5151        rm -rf $(WRKBUILD)
    52         mkdir -p ${WRKDIR}
    5352        ${EXTRACT_CMD}
    54         if [ -d ./patches ]; then \
    55                 $(PATCH) $(WRKBUILD) ./patches ; \
    56         fi
     53        [ ! -d ./patches ] || $(PATCH) $(WRKBUILD) ./patches
    5754        touch $(WRKBUILD)/.prepared
    5855endif
     
    8380        @$(MAKE) install-targets $(MAKE_TRACE)
    8481
    85 mostlyclean:
    86 rebuild:
    87         $(CMD_TRACE) "rebuilding... "
    88         @-$(MAKE) mostlyclean 2>&1 >/dev/null
    89         if [ -f $(WRKBUILD)/.built ]; then \
    90                 $(MAKE) clean $(MAKE_TRACE); \
    91         fi
    92         $(MAKE) compile $(MAKE_TRACE)
    93 
    9482$(WRKBUILD)/.configured:
    9583$(WRKBUILD)/.built:
Note: See TracChangeset for help on using the changeset viewer.