comparison Makefile @ 29:58f3589982ea

Add dist target to makefile
author Guido Berhoerster <guido+booket@berhoerster.name>
date Mon, 17 Nov 2014 15:26:47 +0100
parents 8445c729ba97
children 06eba1bf219d
comparison
equal deleted inserted replaced
28:2aa4527cef03 29:58f3589982ea
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 # 22 #
23 23
24 PACKAGE = booket
25 VERSION = 5
26 DISTNAME := $(PACKAGE)-$(VERSION)
24 RSVG_CONVERT := rsvg-convert 27 RSVG_CONVERT := rsvg-convert
25 SCOUR := scour 28 SCOUR := scour
26 XMLLINT := xmllint 29 XMLLINT := xmllint
30 PAX := pax
31 GZIP := gzip
27 32
28 SVGIMAGES := missing-favicon.svg booket-logo.svg 33 SVGIMAGES := missing-favicon.svg booket-logo.svg
29 PNGIMAGES := booket-favicon.png 34 PNGIMAGES := booket-favicon.png
30 35
31 .DEFAULT_TARGET = all 36 .DEFAULT_TARGET = all
45 50
46 clean: 51 clean:
47 rm -f $(SVGIMAGES) $(PNGIMAGES) 52 rm -f $(SVGIMAGES) $(PNGIMAGES)
48 53
49 clobber: clean 54 clobber: clean
55
56 dist: all
57 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
58 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz