home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / uuencode-1.0-src.lha / src / build / uuencode-1.0 / Makefile.orig < prev   
Makefile  |  1993-10-02  |  3KB  |  129 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for uuencode.    -*- Indented-Text -*-
  3. # Written by Ian Lance Taylor, ian@cygnus.com, August 1993.
  4. # This Makefile is in the public domain.
  5.  
  6. #### Start of system configuration section. ####
  7.  
  8. VPATH = .
  9. srcdir = $(VPATH)
  10.  
  11. CC = gcc
  12.  
  13. INSTALL = cp
  14. INSTALL_PROGRAM = $(INSTALL)
  15. INSTALL_DATA = $(INSTALL)
  16. MAKEINFO = makeinfo
  17. TEXI2DVI = texi2dvi
  18.  
  19. DEFS = 
  20. LIBS = 
  21.  
  22. CFLAGS = -g
  23. LDFLAGS = -g
  24.  
  25. prefix = /usr/local
  26. exec_prefix = $(prefix)
  27.  
  28. bindir = $(exec_prefix)/bin
  29. infodir = $(prefix)/info
  30. man1dir = $(prefix)/man/man1
  31. man1ext = .1
  32. man5dir = $(prefix)/man/man5
  33. man5ext = .5
  34.  
  35. # Prefix to be prepended to each installed program, normally empty or `g'.
  36. binprefix = 
  37.  
  38. #### End of system configuration section. ####
  39.  
  40. SHELL = /bin/sh
  41.  
  42. SRCS = uuencode.c uudecode.c getopt.c getopt1.c version.c alloca.c
  43. EOBJS = uuencode.o getopt.o getopt1.o version.o 
  44. DOBJS = uudecode.o getopt.o getopt1.o version.o 
  45. HDRS = getopt.h
  46. DISTFILES = $(SRCS) $(HDRS) ChangeLog NEWS Makefile.in \
  47.         README INSTALL uuencode.1 uuencode.5 \
  48.         configure configure.in \
  49.         mkinstalldirs testdata
  50.  
  51. all: uuencode uudecode
  52. .PHONY: all
  53.  
  54. .PHONY: info dvi
  55. info: uuencode.info
  56. dvi: uuencode.dvi
  57.  
  58. .c.o:
  59.     $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
  60.  
  61. .PHONY: install installdirs
  62. install: installdirs uuencode uudecode
  63.     $(INSTALL_PROGRAM) uuencode $(bindir)/$(binprefix)uuencode
  64.     $(INSTALL_PROGRAM) uudecode $(bindir)/$(binprefix)uudecode
  65.     $(INSTALL_DATA) $(srcdir)/uuencode.1 $(man1dir)/$(binprefix)uuencode$(man1ext)
  66.     rm -f $(man1dir)/$(binprefix)uudecode$(man1ext)
  67.     ln $(man1dir)/$(binprefix)uuencode$(man1ext) $(man1dir)/$(binprefix)uudecode$(man1ext)
  68.     $(INSTALL_DATA) $(srcdir)/uuencode.5 $(man5dir)/$(binprefix)uuencode$(man5ext)
  69. installdirs:
  70.     ${srcdir}/mkinstalldirs $(bindir) $(man1dir) $(man5dir)
  71.  
  72. uuencode: $(EOBJS)
  73.     $(CC) $(LDFLAGS) -o $@ $(EOBJS) $(LIBS)
  74.  
  75. uudecode: $(DOBJS)
  76.     $(CC) $(LDFLAGS) -o $@ $(DOBJS) $(LIBS)
  77.  
  78. uuencode.o uudecode.o getopt.o getopt1.o: getopt.h
  79.  
  80. uuencode.info:
  81.     @#$(MAKEINFO) -I$(srcdir) -o uuencode.info $(srcdir)/uuencode.texi
  82.     @echo No info file currently available
  83. uudecode.dvi:
  84.     @#$(TEXI2DVI) $(srcdir)/uuencode.texi
  85.     @echo No DVI file currently available
  86.  
  87. .PHONY: check
  88. check: uuencode uudecode testdata
  89.     @echo expect no output from diff
  90.     rm -f test.bin test.tmp
  91.     ./uudecode $(srcdir)/testdata
  92.     ./uuencode test.bin test.bin > test.tmp
  93.     diff -c $(srcdir)/testdata test.tmp
  94.     rm -f test.bin test.tmp
  95.  
  96. Makefile: Makefile.in config.status
  97.     $(SHELL) config.status
  98.  
  99. config.status: configure
  100.     $(srcdir)/configure --no-create
  101.  
  102. TAGS: $(SRCS)
  103.     etags $(SRCS)
  104.  
  105. .PHONY: clean mostlyclean distclean realclean dist
  106.  
  107. clean:
  108.     rm -f uuencode uudecode *.o core test.bin test.tmp
  109.     rm -f uuencode.dvi uuencode.?? uuencode.??s
  110.  
  111. mostlyclean: clean
  112.  
  113. distclean: clean
  114.     rm -f Makefile config.status
  115.  
  116. realclean: distclean
  117.     rm -f TAGS uuencode.info*
  118.  
  119. dist: $(DISTFILES)
  120.     echo uuencode-`sed -e '/version/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  121.     rm -rf `cat .fname`
  122.     mkdir `cat .fname`
  123.     ln $(DISTFILES) `cat .fname`
  124.     tar chozf `cat .fname`.tar.gz `cat .fname`
  125.     rm -rf `cat .fname` .fname
  126.  
  127. # Prevent GNU make v3 from overflowing arg limit on SysV.
  128. .NOEXPORT:
  129.