Not pretty, but if anyone fancies some Makefile golf, I'm open to suggestions:
dist:
echo ${package}-`sed \
-e '/^Version:/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
-e q \
${package}.spec` > .fname
-rm -rf `cat .fname`
cp -lvr src/ `cat .fname`
tar chzf `cat .fname`.tar.gz `cat .fname`
-rm -rf `cat .fname` .fname
and yes, it bears a striking resemblance to the GNU Complex Makefile Example
No comments:
Post a Comment