~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gavin Panella
  • Date: 2011-07-26 21:03:26 UTC
  • mto: This revision was merged to the branch mainline in revision 13527.
  • Revision ID: gavin.panella@canonical.com-20110726210326-ncfbi6wgowq0y1sc
Stop endlessly appending to launchpad.js.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
ifeq ($(JS_BUILD), min)
178
178
        cat $^ | $(PY) -m lp.scripts.utilities.js.jsmin > $@
179
179
else
180
 
        for jsname in $^ ; do \
181
 
            echo "/* $$jsname */" >> $@ ;\
182
 
            cat $$jsname >> $@ ;\
183
 
        done
 
180
        awk 'FNR == 1 {print "/* " FILENAME " */"} {print}' $^ > $@
184
181
endif
185
182
 
186
183
jsbuild: $(PY) $(JS_OUT)