1 # Author: Erwin Waterlander
3 # Copyright (C) 2009-2014 Erwin Waterlander
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
9 # 1. Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 # 2. Redistributions in binary form must reproduce the above copyright
12 # notice in the documentation and/or other materials provided with
15 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
16 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
19 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21 # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24 # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # This is a GNU Makefile that uses GNU compilers, linkers and cpp. The
30 # platform specific issues are determined by the various OS teets that
31 # rely on the uname(1) command and directory locations.
33 # Set additional flags for the build with variables CFLAGS_USER,
34 # DEFS_USER and LDFLAGS_USER.
38 .PHONY: man txt html pdf mofiles tags merge
52 # Native Language Support (NLS)
54 # Large File Support (LFS)
61 BIN = $(PACKAGE)$(EXE)
62 UNIX2DOS_BIN = $(UNIX2DOS)$(EXE)
63 MAC2UNIX_BIN = $(MAC2UNIX)$(EXE)
64 UNIX2MAC_BIN = $(UNIX2MAC)$(EXE)
66 # DJGPP support linking of .EXEs via 'stubify'.
67 # See djgpp.mak and http://www.delorie.com/djgpp/v2faq/faq22_5.html
73 exec_prefix = $(prefix)
74 bindir = $(exec_prefix)/bin
75 datarootdir = $(prefix)/share
76 datadir = $(datarootdir)
78 docsubdir = $(PACKAGE)-$(DOS2UNIX_VERSION)
79 docdir = $(datarootdir)/doc/$(docsubdir)
80 localedir = $(datarootdir)/locale
81 mandir = $(datarootdir)/man
82 man1dir = $(mandir)/man1
87 POT = po/$(PACKAGE).pot
88 POFILES = $(wildcard po/??.po) $(wildcard po/??_??.po)
89 MOFILES = $(patsubst %.po,%.mo,$(POFILES))
94 # By default we generate only English text and html manuals.
95 DOCFILES = man/man1/$(PACKAGE).txt man/man1/$(PACKAGE).$(HTMLEXT)
96 INSTALL_OBJS_DOC = README.txt INSTALL.txt NEWS.txt ChangeLog.txt COPYING.txt TODO.txt BUGS.txt $(DOCFILES)
98 MANPOTFILE = man/man1/dos2unix-man.pot
99 MANPOFILES = $(wildcard man/*/man1/dos2unix.po)
100 PODFILES = $(patsubst %.po,%.pod,$(MANPOFILES))
101 PODFILES_ALL = man/man1/dos2unix.pod $(PODFILES)
102 MANFILES = $(patsubst %.pod,%.1,$(PODFILES))
103 TXTFILES = $(patsubst %.pod,%.txt,$(PODFILES_ALL))
104 HTMLFILES = $(patsubst %.pod,%.$(HTMLEXT),$(PODFILES_ALL))
105 PSFILES = $(patsubst %.pod,%.ps,$(PODFILES_ALL))
106 PDFFILES = $(patsubst %.pod,%.pdf,$(PODFILES_ALL))
108 # On some systems (e.g. FreeBSD 4.10) GNU install is installed as `ginstall'.
111 # On some systems (e.g. GNU Win32) GNU mkdir is installed as `gmkdir'.
115 DOS2UNIX_NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(localedir)\" -DPACKAGE=\"$(PACKAGE)\"
120 # ......................................................... OS flags ...
125 ifeq (Linux, $(shell uname -s))
131 ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
136 ifeq (cygwin,$(D2U_OS))
138 LIBS_EXTRA = -lintl -liconv
140 LDFLAGS_EXTRA = -Wl,--enable-auto-import
142 # allow non-cygwin clients which do not understand cygwin
143 # symbolic links to launch applications...
145 # but use symbolic links for man pages, since man client
146 # IS a cygwin app and DOES understand symlinks.
148 # Cygwin packaging standard avoids version numbers on
149 # documentation directories.
150 docsubdir = $(PACKAGE)
151 VERSIONSUFFIX = -cygwin
155 ifeq ($(findstring MSYS,$(shell uname)),MSYS)
159 VERSIONSUFFIX = -msys
162 LIBS_EXTRA = -lintl -liconv
168 ifeq ($(findstring MINGW32,$(shell uname)),MINGW32)
172 VERSIONSUFFIX = -win32
175 LIBS_EXTRA = -lintl -liconv
176 ZIPOBJ_EXTRA = bin/libintl-8.dll bin/libiconv-2.dll
178 ifeq ($(findstring w64-mingw32,$(shell gcc -dumpmachine)),w64-mingw32)
179 CFLAGS_COMPILER = -DD2U_COMPILER=MINGW32_W64
193 ZIPOBJ_EXTRA = bin/cwsdpmi.exe
195 LIBS_EXTRA = -lintl -liconv
201 ifeq ($(shell uname),OS/2)
208 LDFLAGS_EXTRA = -Zargs-wild
210 LIBS_EXTRA += -lintl -liconv
216 ifeq (FreeBSD, $(shell uname -s))
219 CFLAGS_OS = -I/usr/local/include
220 LDFLAGS_EXTRA = -L/usr/local/lib
226 ifeq (Darwin, $(shell uname -s))
229 CFLAGS_OS = -I/usr/local/include
230 LDFLAGS_EXTRA = -L/usr/local/lib
237 ifneq (, $(wildcard /opt/csw))
243 # Running under SunOS/Solaris
248 ifeq (HP-UX, $(shell uname -s))
253 ifeq (hpux,$(D2U_OS))
254 # Running under HP-UX
255 EXTRA_DEFS += -Dhpux -D_HPUX_SOURCE
259 D2U_OS = $(shell uname -s)
262 # ............................................................ flags ...
264 # PostScript and PDF generation from UTF-8 manuals is not working,
265 # or I don't know how to do it.
269 CFLAGS += -Wall $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER)
271 EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \
272 -DVER_DATE=\"$(DOS2UNIX_DATE)\" \
273 -DVER_AUTHOR=\"$(DOS2UNIX_AUTHOR)\" \
283 EXTRA_CFLAGS += -static
287 EXTRA_CFLAGS += -DD2U_UNICODE
291 EXTRA_CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
295 LDFLAGS = $(RPM_OPT_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER)
299 DEFS = $(EXTRA_DEFS) $(DEFS_USER)
301 # .......................................................... targets ...
303 all: $(BIN) $(MAC2UNIX_BIN) $(UNIX2DOS_BIN) $(UNIX2MAC_BIN) $(DOCFILES) $(MOFILES) man/man1/dos2unix.1 $(MANFILES) $(MANPOTFILE)
306 @echo "D2U_OS = $(D2U_OS)"
308 @echo "CFLAGS = $(CFLAGS)"
309 @echo "EXTRA_CFLAGS = $(EXTRA_CFLAGS)"
310 @echo "LDFLAGS = $(LDFLAGS)"
311 @echo "LIBS = $(LIBS)"
313 common.o : common.c common.h
314 $(CC) $(DEFS) $(EXTRA_CFLAGS) $(DOS2UNIX_NLSDEFS) $(CFLAGS) -c $< -o $@
316 querycp.o : querycp.c querycp.h
317 $(CC) $(DEFS) $(EXTRA_CFLAGS) $(DOS2UNIX_NLSDEFS) $(CFLAGS) -c $< -o $@
319 dos2unix.o : dos2unix.c dos2unix.h querycp.h common.h version.mk
320 $(CC) $(DEFS) $(EXTRA_CFLAGS) $(DOS2UNIX_NLSDEFS) $(CFLAGS) -c $< -o $@
322 unix2dos.o : unix2dos.c unix2dos.h querycp.h common.h version.mk
323 $(CC) $(DEFS) $(EXTRA_CFLAGS) $(DOS2UNIX_NLSDEFS) $(CFLAGS) -c $< -o $@
325 $(BIN): dos2unix.o querycp.o common.o
326 $(CC) $+ $(LDFLAGS) $(LIBS) -o $@
328 $(UNIX2DOS_BIN): unix2dos.o querycp.o common.o
329 $(CC) $+ $(LDFLAGS) $(LIBS) -o $@
331 $(MAC2UNIX_BIN) : $(BIN)
334 $(UNIX2MAC_BIN) : $(UNIX2DOS_BIN)
337 $(MANPOTFILE) : man/man1/dos2unix.pod
338 $(MAKE) -C man/man1 $(notdir $@)
340 # WARNING: Backward-incompatibility since GNU make 3.82.
341 # The pattern-specific variables and pattern rules are now applied in the
342 # shortest stem first order instead of the definition order (variables
343 # and rules with the same stem length are still applied in the definition
345 # In order to stay compatible with GNU make < 3.82 we put the rule with
346 # the shortest stem first.
349 msgmerge -U $@ $(POT) --backup=numbered
350 # change timestamp in case .po file was not updated.
353 %.po : man/man1/dos2unix.pod
354 $(MAKE) -C man/man1 $(subst man/,../,$@)
357 $(MAKE) -C man/man1 $(subst man/,../,$@)
359 # empty recipe to break circular dependency
360 man/man1/dos2unix.pod : ;
363 $(MAKE) -C man/man1 $(subst man/,../,$@)
375 man: man/man1/dos2unix.1 $(MANFILES) $(MANPOTFILE)
383 # Get new po files from the Translation Project.
385 rsync -Lrtvz translationproject.org::tp/latest/dos2unix/ po/incoming/
388 rsync -Lrtvz translationproject.org::tp/latest/dos2unix-man/ man/incoming/
393 $(POT) : dos2unix.c unix2dos.c common.c
394 xgettext -C --keyword=_ $+ -o $(POT)
399 README.txt INSTALL.txt NEWS.txt ChangeLog.txt COPYING.txt TODO.txt BUGS.txt: ;
402 groff -man $< -T ps > $@
409 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - DOS/MAC to UNIX and vice versa text file format converter" $< > $@
411 man/de/man1/$(PACKAGE).$(HTMLEXT) : man/de/man1/$(PACKAGE).pod
412 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - Formatumwandlung für Textdateien von DOS/Mac nach Unix und umgekehrt" $< > $@
414 man/es/man1/$(PACKAGE).$(HTMLEXT) : man/es/man1/$(PACKAGE).pod
415 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - Convertidor de archivos de texto de formato DOS/Mac a Unix y viceversa" $< > $@
417 man/fr/man1/$(PACKAGE).$(HTMLEXT) : man/fr/man1/$(PACKAGE).pod
418 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - Convertit les fichiers textes du format DOS/Mac vers Unix et inversement" $< > $@
420 man/nl/man1/$(PACKAGE).$(HTMLEXT) : man/nl/man1/$(PACKAGE).pod
421 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - DOS/Mac naar Unix en vice versa tekstbestand formaat omzetter" $< > $@
423 man/pl/man1/$(PACKAGE).$(HTMLEXT) : man/pl/man1/$(PACKAGE).pod
424 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - konwerter formatu plików tekstowych między systemami DOS/Mac a Uniksem" $< > $@
426 man/pt_BR/man1/$(PACKAGE).$(HTMLEXT) : man/pt_BR/man1/$(PACKAGE).pod
427 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - Conversor de formato de arquivo texto de DOS/Mac para Unix e vice-versa" $< > $@
429 man/uk/man1/$(PACKAGE).$(HTMLEXT) : man/uk/man1/$(PACKAGE).pod
430 pod2html --title="$(PACKAGE) $(DOS2UNIX_VERSION) - програма для перетворення даних у текстовому форматі DOS/Mac у формат Unix, і навпаки" $< > $@
433 $(MKDIR) -p -m 755 $(DESTDIR)$(bindir)
434 $(INSTALL) -m 755 $(BIN) $(DESTDIR)$(bindir)
435 $(INSTALL) -m 755 $(UNIX2DOS_BIN) $(DESTDIR)$(bindir)
437 $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(DESTDIR)$(bindir)
438 $(INSTALL) -m 755 $(UNIX2MAC_BIN) $(DESTDIR)$(bindir)
440 cd $(DESTDIR)$(bindir); $(LINK) $(BIN) $(MAC2UNIX_BIN)
441 cd $(DESTDIR)$(bindir); $(LINK) $(UNIX2DOS_BIN) $(UNIX2MAC_BIN)
443 $(MKDIR) -p -m 755 $(DESTDIR)$(man1dir)
444 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)
445 ifeq ($(LINK_MAN),cp -f)
446 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(MAC2UNIX).1
447 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(UNIX2DOS).1
448 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(UNIX2MAC).1
450 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1
451 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1
452 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1
454 $(foreach manfile, $(MANFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;)
455 $(foreach manfile, $(MANFILES), $(INSTALL) -m 644 $(manfile) $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;)
456 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1 ;)
457 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1 ;)
458 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1 ;)
460 @echo "-- install-mo"
461 $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;)
462 $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;)
464 # Run a new instance of 'make' otherwise the $$(wildcard ) function my not have been expanded,
465 # because the files may not have been there when make was started.
469 install-doc: $(INSTALL_OBJS_DOC)
470 @echo "-- install-doc"
471 $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)
472 $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DESTDIR)$(docdir)
473 # Install translated manuals when they have been generated.
474 $(foreach txtfile, $(wildcard man/*/man1/*.txt), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(txtfile),)) ;)
475 $(foreach txtfile, $(wildcard man/*/man1/*.txt), $(INSTALL) -m 644 $(txtfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(txtfile),)) ;)
476 $(foreach htmlfile, $(wildcard man/*/man1/*.$(HTMLEXT)), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(htmlfile),)) ;)
477 $(foreach htmlfile, $(wildcard man/*/man1/*.$(HTMLEXT)), $(INSTALL) -m 644 $(htmlfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(htmlfile),)) ;)
478 $(foreach pdffile, $(wildcard man/*/man1/*.pdf), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(pdffile),)) ;)
479 $(foreach pdffile, $(wildcard man/*/man1/*.pdf), $(INSTALL) -m 644 $(pdffile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(pdffile),)) ;)
480 $(foreach pdffile, $(wildcard man/man1/*.pdf), $(INSTALL) -m 644 $(pdffile) $(DESTDIR)$(docdir) ;)
481 $(foreach psfile, $(wildcard man/*/man1/*.ps), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(psfile),)) ;)
482 $(foreach psfile, $(wildcard man/*/man1/*.ps), $(INSTALL) -m 644 $(psfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(psfile),)) ;)
483 $(foreach psfile, $(wildcard man/man1/*.ps), $(INSTALL) -m 644 $(psfile) $(DESTDIR)$(docdir) ;)
486 @echo "-- target: uninstall"
487 -rm -f $(DESTDIR)$(bindir)/$(BIN)
488 -rm -f $(DESTDIR)$(bindir)/$(MAC2UNIX_BIN)
489 -rm -f $(DESTDIR)$(bindir)/$(UNIX2DOS_BIN)
490 -rm -f $(DESTDIR)$(bindir)/$(UNIX2MAC_BIN)
492 $(foreach mofile, $(MOFILES), rm -f $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;)
494 -rm -f $(DESTDIR)$(mandir)/man1/$(PACKAGE).1
495 -rm -f $(DESTDIR)$(mandir)/man1/$(MAC2UNIX).1
496 -rm -f $(DESTDIR)$(mandir)/man1/$(UNIX2DOS).1
497 -rm -f $(DESTDIR)$(mandir)/man1/$(UNIX2MAC).1
498 $(foreach manfile, $(MANFILES), rm -f $(DESTDIR)$(datarootdir)/$(manfile) ;)
499 -rm -rf $(DESTDIR)$(docdir)
503 rm -f $(BIN) $(UNIX2DOS_BIN) $(MAC2UNIX_BIN) $(UNIX2MAC_BIN)
506 rm -f man/man1/*.bak man/man1/*~
507 rm -f man/*/man1/*.bak man/*/man1/*~
511 # Don't distribute PostScript and PDF manuals in the source package.
512 # We don't want binary PDF files in the source package, because
513 # some packagers check in the source files. PostScript is not used
519 rm -f man/*/man1/*.ps
520 rm -f man/*/man1/*.pdf
524 # Because there is so much trouble with generating man pages with
525 # pod2man, due to old Perl versions (< 5.10.1) on many systems, I include the
526 # man pages in the source tar file.
527 # Old pod2man versions do not have the --utf8 option. Old pod2man, pod2text,
528 # and pod2html do not support the =encoding command.
529 # Perl 5.18 pod2man demands an =encoding command for Latin-1 encoded POD files.
531 # Newer perl/pod2man versions produce better output. It is better to include
532 # man pages in the source package, than that people generate them themselves
533 # with old perl versions.
535 maintainer-clean: distclean
536 @echo 'This command is intended for maintainers to use; it'
537 @echo 'deletes files that may need special tools to rebuild.'
540 rm -f man/man1/*.$(HTMLEXT)
541 rm -f man/man1/dos2unix-man.pot
543 rm -f man/*/man1/*.txt
544 rm -f man/*/man1/*.pod
545 rm -f man/*/man1/*.$(HTMLEXT)
547 realclean: maintainer-clean
550 ZIPOBJ = bin/$(BIN) \
551 bin/$(MAC2UNIX_BIN) \
552 bin/$(UNIX2DOS_BIN) \
553 bin/$(UNIX2MAC_BIN) \
554 share/man/man1/$(PACKAGE).1 \
555 share/man/man1/$(MAC2UNIX).1 \
556 share/man/man1/$(UNIX2DOS).1 \
557 share/man/man1/$(UNIX2MAC).1 \
558 share/man/*/man1/$(PACKAGE).1 \
559 share/man/*/man1/$(MAC2UNIX).1 \
560 share/man/*/man1/$(UNIX2DOS).1 \
561 share/man/*/man1/$(UNIX2MAC).1 \
562 share/doc/$(docsubdir) \
566 ZIPOBJ += share/locale/*/LC_MESSAGES/$(PACKAGE).mo
569 ZIPFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).zip
570 TGZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).tar.gz
571 TBZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).tar.bz2
574 rm -f $(prefix)/$(ZIPFILE)
575 cd $(prefix) ; unix2dos --keepdate share/man/man1/*.1 share/man/*/man1/*.1
576 -cd $(prefix) ; unix2dos --keepdate --add-bom share/doc/$(docsubdir)/*.txt share/doc/$(docsubdir)/*/*.txt
577 -cd $(prefix) ; unix2dos --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) share/doc/$(docsubdir)/*/*.$(HTMLEXT)
578 cd $(prefix) ; unix2dos --keepdate share/man/*/man1/$(PACKAGE).1 share/man/*/man1/$(MAC2UNIX).1 share/man/*/man1/$(UNIX2DOS).1 share/man/*/man1/$(UNIX2MAC).1
579 cd $(prefix) ; zip -r $(ZIPFILE) $(ZIPOBJ)
580 mv -f $(prefix)/$(ZIPFILE) ..
583 cd $(prefix) ; dos2unix --keepdate share/man/man1/*.1 share/man/*/man1/*.1
584 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.txt share/doc/$(docsubdir)/*/*.txt
585 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) share/doc/$(docsubdir)/*/*.$(HTMLEXT)
586 cd $(prefix) ; tar cvzf $(TGZFILE) $(ZIPOBJ)
587 mv $(prefix)/$(TGZFILE) ..
590 cd $(prefix) ; dos2unix --keepdate share/man/man1/*.1 share/man/*/man1/*.1
591 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.txt dos2unix share/doc/$(docsubdir)/*/*.txt
592 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) dos2unix share/doc/$(docsubdir)/*/*.$(HTMLEXT)
593 cd $(prefix) ; tar cvjf $(TBZFILE) $(ZIPOBJ)
594 mv $(prefix)/$(TBZFILE) ..
600 $(STRIP) $(UNIX2DOS_BIN)
602 $(STRIP) $(MAC2UNIX_BIN)
603 $(STRIP) $(UNIX2MAC_BIN)