Skip to content

Commit fc62ede

Browse files
committed
Changed Makefile to make tar.bz2
1 parent 613c509 commit fc62ede

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

Makefile

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,28 @@ TAR = $(NAME)-$(VERSION).tar
99
GZ = $(TAR).gz
1010
BZ2 = $(TAR).bz2
1111

12-
all:
13-
12+
dist: clean $(GZ)
13+
14+
$(TAR):
15+
for j in `find . ! -type l ! -name '*~' ! -name '#*' ! -name 'db' ! -path '*/.git/*' ! -path '*/.gitignore'`; do \
16+
if [ -f $$j ]; then \
17+
$(INSTALL) $$j $(NAME)-$(VERSION)/$$j; \
18+
fi; \
19+
done
20+
tar cf $(TAR) $(NAME)-$(VERSION)
21+
rm -rf $(NAME)-$(VERSION)
22+
23+
$(GZ): $(TAR)
24+
gzip -f $(TAR)
25+
26+
bz2: clean $(BZ2)
27+
28+
$(BZ2): $(TAR)
29+
bzip2 $(TAR)
30+
31+
clean:
32+
rm -rf $(GZ) $(TAR) $(BZ2) $(NAME)-$(VERSION)
33+
1434
install:
1535
for i in '$(DIRS)'; do \
1636
for j in `find $$i`; do \

0 commit comments

Comments
 (0)