Changeset 5d96f6a in bootscripts-embedded for Makefile


Ignore:
Timestamp:
Jul 6, 2009, 7:05:38 PM (15 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
292c832
Parents:
8054aa2
Message:

Add a dist make target to the Makefile for release tarballs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r8054aa2 r5d96f6a  
    1 ETCDIR=/etc
    2 EXTDIR=${DESTDIR}${ETCDIR}
    3 MODE=754
    4 DIRMODE=755
    5 CONFMODE=644
     1VERSION         := 1.0-pre4
     2
     3ETCDIR          := /etc
     4EXTDIR          := ${DESTDIR}${ETCDIR}
     5MODE            := 754
     6DIRMODE         := 755
     7CONFMODE        := 644
    68
    79all:
    810        @grep "^install" Makefile | cut -d ":" -f 1
     11        @echo dist
    912        @echo "Select an appropriate install target from the above list" ; exit 1
     13
     14.PHONY: dist
     15dist:
     16        rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
     17        mkdir -p "dist/bootscripts-clfs-embedded-$(VERSION)"
     18        tar --exclude dist -c * | tar -x -C "dist/bootscripts-clfs-embedded-$(VERSION)"
     19        (cd dist; tar -cjf "bootscripts-clfs-embedded-$(VERSION).tar.bz2" "bootscripts-clfs-embedded-$(VERSION)")
     20        rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
    1021
    1122create-dirs:
Note: See TracChangeset for help on using the changeset viewer.