Prepare for dist

pull/16/head
Dave Vasilevsky 12 years ago
parent 65e827da82
commit 745b624361

1
.gitattributes vendored

@ -0,0 +1 @@
.gitignore export-ignore

3
.gitignore vendored

@ -1,6 +1,7 @@
pixz
pixz.1
*.o
libs
tars
tars

@ -1,10 +1,12 @@
VERSION = 1.0
ifneq ($(shell gcc -v 2>&1 | grep 'Apple Inc'),)
APPLE=1
endif
OPT = -g -O0
MYCFLAGS = $(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT) -std=gnu99 \
-Wall -Wno-unknown-pragmas
-Wall -Wno-unknown-pragmas -DPIXZ_VERSION='"$(VERSION)"'
MYLDFLAGS = $(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT) -Wall
THREADS = -lpthread
@ -21,6 +23,7 @@ endif
endif
PROGS = pixz
MANPAGE = pixz.1
COMMON = common.o endian.o cpu.o read.o write.o list.o
all: $(PROGS)
@ -32,6 +35,12 @@ $(PROGS): %: %.o $(COMMON)
$(LD) $@ $^ $(LIBADD)
clean:
rm -f *.o $(PROGS)
rm -f *.o $(PROGS) $(MANPAGE)
$(MANPAGE): pixz.1.asciidoc
a2x -a manversion=$(VERSION) -f manpage $<
dist: $(MANPAGE)
.PHONY: all clean
.PHONY: all clean dist

@ -42,11 +42,11 @@ static void usage(const char *msg) {
" -t Don't assume input is in tar format\n"
" -h Print this help\n"
"\n"
"pixz 1.0\n"
"pixz %s\n"
"(C) 2009-2012 Dave Vasilevsky <dave@vasilevsky.ca>\n"
"https://github.com/vasi/pixz\n"
"You may use this software under the FreeBSD License\n"
);
"You may use this software under the FreeBSD License\n",
PIXZ_VERSION);
exit(2);
}

Loading…
Cancel
Save