/[axel]/trunk/Makefile
ViewVC logotype

Diff of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by appaji-guest, Fri Jan 11 11:57:58 2008 UTC revision 76 by phihag-guest, Mon Dec 29 13:03:46 2008 UTC
# Line 7  Line 7 
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)
# Line 29  clean: Line 29  clean:
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)/
# Line 48  uninstall-etc: Line 51  uninstall-etc:
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
# Line 63  install-bin: Line 66  install-bin:
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

Legend:
Removed from v.2  
changed lines
  Added in v.76

  ViewVC Help
Powered by ViewVC 1.1.5