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 test check
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 -Wextra -Wconversion $(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 dos2unix.h unix2dos.h version.mk
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
320 $(CC) $(DEFS) $(EXTRA_CFLAGS) $(DOS2UNIX_NLSDEFS) $(CFLAGS) -c $< -o $@
322 unix2dos.o : unix2dos.c unix2dos.h querycp.h common.h
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 cd test; $(MAKE) test
438 $(MKDIR) -p -m 755 $(DESTDIR)$(bindir)
439 $(INSTALL) -m 755 $(BIN) $(DESTDIR)$(bindir)
440 $(INSTALL) -m 755 $(UNIX2DOS_BIN) $(DESTDIR)$(bindir)
442 $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(DESTDIR)$(bindir)
443 $(INSTALL) -m 755 $(UNIX2MAC_BIN) $(DESTDIR)$(bindir)
445 cd $(DESTDIR)$(bindir); $(LINK) $(BIN) $(MAC2UNIX_BIN)
446 cd $(DESTDIR)$(bindir); $(LINK) $(UNIX2DOS_BIN) $(UNIX2MAC_BIN)
448 $(MKDIR) -p -m 755 $(DESTDIR)$(man1dir)
449 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)
450 ifeq ($(LINK_MAN),cp -f)
451 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(MAC2UNIX).1
452 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(UNIX2DOS).1
453 $(INSTALL) -m 644 man/man1/$(PACKAGE).1 $(DESTDIR)$(man1dir)/$(UNIX2MAC).1
455 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1
456 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1
457 cd $(DESTDIR)$(man1dir); $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1
459 $(foreach manfile, $(MANFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;)
460 $(foreach manfile, $(MANFILES), $(INSTALL) -m 644 $(manfile) $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ;)
461 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(MAC2UNIX).1 ;)
462 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2DOS).1 ;)
463 $(foreach manfile, $(MANFILES), cd $(DESTDIR)$(datarootdir)/$(dir $(manfile)) ; $(LINK_MAN) $(PACKAGE).1 $(UNIX2MAC).1 ;)
465 @echo "-- install-mo"
466 $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;)
467 $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;)
469 # Run a new instance of 'make' otherwise the $$(wildcard ) function my not have been expanded,
470 # because the files may not have been there when make was started.
474 install-doc: $(INSTALL_OBJS_DOC)
475 @echo "-- install-doc"
476 $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)
477 $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DESTDIR)$(docdir)
478 # Install translated manuals when they have been generated.
479 $(foreach txtfile, $(wildcard man/*/man1/*.txt), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(txtfile),)) ;)
480 $(foreach txtfile, $(wildcard man/*/man1/*.txt), $(INSTALL) -m 644 $(txtfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(txtfile),)) ;)
481 $(foreach htmlfile, $(wildcard man/*/man1/*.$(HTMLEXT)), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(htmlfile),)) ;)
482 $(foreach htmlfile, $(wildcard man/*/man1/*.$(HTMLEXT)), $(INSTALL) -m 644 $(htmlfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(htmlfile),)) ;)
483 $(foreach pdffile, $(wildcard man/*/man1/*.pdf), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(pdffile),)) ;)
484 $(foreach pdffile, $(wildcard man/*/man1/*.pdf), $(INSTALL) -m 644 $(pdffile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(pdffile),)) ;)
485 $(foreach pdffile, $(wildcard man/man1/*.pdf), $(INSTALL) -m 644 $(pdffile) $(DESTDIR)$(docdir) ;)
486 $(foreach psfile, $(wildcard man/*/man1/*.ps), $(MKDIR) -p -m 755 $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(psfile),)) ;)
487 $(foreach psfile, $(wildcard man/*/man1/*.ps), $(INSTALL) -m 644 $(psfile) $(DESTDIR)$(docdir)/$(word 2,$(subst /, ,$(psfile),)) ;)
488 $(foreach psfile, $(wildcard man/man1/*.ps), $(INSTALL) -m 644 $(psfile) $(DESTDIR)$(docdir) ;)
491 @echo "-- target: uninstall"
492 -rm -f $(DESTDIR)$(bindir)/$(BIN)
493 -rm -f $(DESTDIR)$(bindir)/$(MAC2UNIX_BIN)
494 -rm -f $(DESTDIR)$(bindir)/$(UNIX2DOS_BIN)
495 -rm -f $(DESTDIR)$(bindir)/$(UNIX2MAC_BIN)
497 $(foreach mofile, $(MOFILES), rm -f $(DESTDIR)$(localedir)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;)
499 -rm -f $(DESTDIR)$(mandir)/man1/$(PACKAGE).1
500 -rm -f $(DESTDIR)$(mandir)/man1/$(MAC2UNIX).1
501 -rm -f $(DESTDIR)$(mandir)/man1/$(UNIX2DOS).1
502 -rm -f $(DESTDIR)$(mandir)/man1/$(UNIX2MAC).1
503 $(foreach manfile, $(MANFILES), rm -f $(DESTDIR)$(datarootdir)/$(manfile) ;)
504 -rm -rf $(DESTDIR)$(docdir)
508 rm -f $(BIN) $(UNIX2DOS_BIN) $(MAC2UNIX_BIN) $(UNIX2MAC_BIN)
511 rm -f man/man1/*.bak man/man1/*~
512 rm -f man/*/man1/*.bak man/*/man1/*~
515 cd test; $(MAKE) clean
517 # Don't distribute PostScript and PDF manuals in the source package.
518 # We don't want binary PDF files in the source package, because
519 # some packagers check in the source files. PostScript is not used
525 rm -f man/*/man1/*.ps
526 rm -f man/*/man1/*.pdf
530 # Because there is so much trouble with generating man pages with
531 # pod2man, due to old Perl versions (< 5.10.1) on many systems, I include the
532 # man pages in the source tar file.
533 # Old pod2man versions do not have the --utf8 option. Old pod2man, pod2text,
534 # and pod2html do not support the =encoding command.
535 # Perl 5.18 pod2man demands an =encoding command for Latin-1 encoded POD files.
537 # Newer perl/pod2man versions produce better output. It is better to include
538 # man pages in the source package, than that people generate them themselves
539 # with old perl versions.
541 maintainer-clean: distclean
542 @echo 'This command is intended for maintainers to use; it'
543 @echo 'deletes files that may need special tools to rebuild.'
546 rm -f man/man1/*.$(HTMLEXT)
547 rm -f man/man1/dos2unix-man.pot
549 rm -f man/*/man1/*.txt
550 rm -f man/*/man1/*.pod
551 rm -f man/*/man1/*.$(HTMLEXT)
553 realclean: maintainer-clean
556 ZIPOBJ = bin/$(BIN) \
557 bin/$(MAC2UNIX_BIN) \
558 bin/$(UNIX2DOS_BIN) \
559 bin/$(UNIX2MAC_BIN) \
560 share/man/man1/$(PACKAGE).1 \
561 share/man/man1/$(MAC2UNIX).1 \
562 share/man/man1/$(UNIX2DOS).1 \
563 share/man/man1/$(UNIX2MAC).1 \
564 share/man/*/man1/$(PACKAGE).1 \
565 share/man/*/man1/$(MAC2UNIX).1 \
566 share/man/*/man1/$(UNIX2DOS).1 \
567 share/man/*/man1/$(UNIX2MAC).1 \
568 share/doc/$(docsubdir) \
572 ZIPOBJ += share/locale/*/LC_MESSAGES/$(PACKAGE).mo
575 ZIPFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).zip
576 TGZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).tar.gz
577 TBZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX)$(NLSSUFFIX).tar.bz2
580 rm -f $(prefix)/$(ZIPFILE)
581 cd $(prefix) ; unix2dos --keepdate share/man/man1/*.1 share/man/*/man1/*.1
582 -cd $(prefix) ; unix2dos --keepdate --add-bom share/doc/$(docsubdir)/*.txt share/doc/$(docsubdir)/*/*.txt
583 -cd $(prefix) ; unix2dos --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) share/doc/$(docsubdir)/*/*.$(HTMLEXT)
584 cd $(prefix) ; unix2dos --keepdate share/man/*/man1/$(PACKAGE).1 share/man/*/man1/$(MAC2UNIX).1 share/man/*/man1/$(UNIX2DOS).1 share/man/*/man1/$(UNIX2MAC).1
585 cd $(prefix) ; zip -r $(ZIPFILE) $(ZIPOBJ)
586 mv -f $(prefix)/$(ZIPFILE) ..
589 cd $(prefix) ; dos2unix --keepdate share/man/man1/*.1 share/man/*/man1/*.1
590 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.txt share/doc/$(docsubdir)/*/*.txt
591 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) share/doc/$(docsubdir)/*/*.$(HTMLEXT)
592 cd $(prefix) ; tar cvzf $(TGZFILE) $(ZIPOBJ)
593 mv $(prefix)/$(TGZFILE) ..
596 cd $(prefix) ; dos2unix --keepdate share/man/man1/*.1 share/man/*/man1/*.1
597 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.txt dos2unix share/doc/$(docsubdir)/*/*.txt
598 -cd $(prefix) ; dos2unix --keepdate share/doc/$(docsubdir)/*.$(HTMLEXT) dos2unix share/doc/$(docsubdir)/*/*.$(HTMLEXT)
599 cd $(prefix) ; tar cvjf $(TBZFILE) $(ZIPOBJ)
600 mv $(prefix)/$(TBZFILE) ..
606 $(STRIP) $(UNIX2DOS_BIN)
608 $(STRIP) $(MAC2UNIX_BIN)
609 $(STRIP) $(UNIX2MAC_BIN)