| 7 |
|
|
| 8 |
### DEFINITIONS |
### DEFINITIONS |
| 9 |
|
|
| 10 |
include Makefile.settings |
-include Makefile.settings |
| 11 |
|
|
| 12 |
.SUFFIXES: .po .mo |
.SUFFIXES: .po .mo |
| 13 |
|
|
| 14 |
# Add your translation here.. |
# Add your translation here.. |
| 15 |
MOFILES = nl.mo de.mo |
MOFILES = nl.mo de.mo ru.mo zh_cn.mo |
| 16 |
|
|
| 17 |
|
|
| 18 |
all: $(OUTFILE) |
all: $(OUTFILE) |
| 29 |
rm -f *.o $(OUTFILE) search core *.mo |
rm -f *.o $(OUTFILE) search core *.mo |
| 30 |
|
|
| 31 |
distclean: clean |
distclean: clean |
| 32 |
rm -f Makefile.settings config.h |
rm -f Makefile.settings config.h axel-*.tar axel-*.tar.gz axel-*.tar.bz2 |
| 33 |
|
|
| 34 |
install-man: |
install-man: |
| 35 |
mkdir -p $(DESTDIR)$(MANDIR)/man1/ |
mkdir -p $(DESTDIR)$(MANDIR)/man1/ |
| 36 |
cp axel.1 $(DESTDIR)$(MANDIR)/man1/axel.1 |
cp axel.1 $(DESTDIR)$(MANDIR)/man1/axel.1 |
| 37 |
|
mkdir -p $(DESTDIR)$(MANDIR)/zh_CN/ |
| 38 |
|
cp axel_zh_CN.1 $(DESTDIR)$(MANDIR)/zh_CN/man1/axel.1 |
| 39 |
|
|
| 40 |
uninstall-man: |
uninstall-man: |
| 41 |
rm -f $(MANDIR)/man1/axel.1 |
rm -f $(MANDIR)/man1/axel.1 |
| 42 |
|
rm -f $(MANDIR)/zh_CN/man1/axel.1 |
| 43 |
|
|
| 44 |
install-etc: |
install-etc: |
| 45 |
mkdir -p $(DESTDIR)$(ETCDIR)/ |
mkdir -p $(DESTDIR)$(ETCDIR)/ |
| 51 |
### MAIN PROGRAM |
### MAIN PROGRAM |
| 52 |
|
|
| 53 |
$(OUTFILE): axel.o conf.o conn.o ftp.o http.o search.o tcp.o text.o |
$(OUTFILE): axel.o conf.o conn.o ftp.o http.o search.o tcp.o text.o |
| 54 |
$(CC) axel.o conf.o conn.o ftp.o http.o search.o tcp.o text.o -o $(OUTFILE) $(LFLAGS) |
$(CC) *.o -o $(OUTFILE) $(LFLAGS) |
| 55 |
ifndef DEBUG |
ifndef DEBUG |
| 56 |
-$(STRIP) $(OUTFILE) |
-$(STRIP) $(OUTFILE) |
| 57 |
endif |
endif |
| 66 |
uninstall-bin: |
uninstall-bin: |
| 67 |
rm -f $(BINDIR)/$(OUTFILE) |
rm -f $(BINDIR)/$(OUTFILE) |
| 68 |
|
|
| 69 |
tar: distclean |
tar: |
| 70 |
x=`pwd | sed -e 's/\/.*\///'`; \ |
version=$$(sed -n 's/#define AXEL_VERSION_STRING[ \t]*"\([^"]*\)"/\1/p' < axel.h) && \ |
| 71 |
cd ..; \ |
tar --create --transform "s#^#axel-$${version}/#" "--file=axel-$${version}.tar" --exclude-vcs -- *.c *.h *.po configure Makefile axel.1 axelrc.example axel.spec gui API CHANGES COPYING CREDITS README && \ |
| 72 |
tar czf $$x.tar.gz $$x |
gzip --best < "axel-$${version}.tar" > "axel-$${version}.tar.gz" && \ |
| 73 |
|
bzip2 --best < "axel-$${version}.tar" > "axel-$${version}.tar.bz2" |
| 74 |
|
|
| 75 |
|
|
| 76 |
### I18N FILES |
### I18N FILES |