Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bugs in 'make dist'

  • Loading branch information...
commit 4a2bd9bd2aeea3ec94fd2146e960eb9f37f73a10 1 parent cad5da2
Sound and Fury authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 Makefile
View
9 Makefile
@@ -2,6 +2,7 @@
CC ?= gcc
CFLAGS ?= -Wall
+VERSION := `git describe --tags`
all: quirc
@@ -25,11 +26,9 @@ colour.o: colour.c colour.h
$(CC) $(CFLAGS) -o colour.o -c colour.c
dist: all
- VERSION = `git describe`
- mkdir quirc_$(VERSION)
- cp * quirc_$(VERSION)
- rm quirc_$(VERSION)/.quirc*
- tar -cvvf quirc_$(VERSION)
+ -mkdir quirc_$(VERSION)
+ for p in $$(ls); do cp $$p quirc_$(VERSION)/$$p; done;
+ tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
gzip quirc_$(VERSION).tar
rm -r quirc_$(VERSION)
Please sign in to comment.
Something went wrong with that request. Please try again.