1*d5c9a868SElliott Hughes# Copyright 1996-2004,2006-2010 Alain Knaff. 2*d5c9a868SElliott Hughes# This file is part of mtools. 3*d5c9a868SElliott Hughes# 4*d5c9a868SElliott Hughes# Mtools is free software: you can redistribute it and/or modify 5*d5c9a868SElliott Hughes# it under the terms of the GNU General Public License as published by 6*d5c9a868SElliott Hughes# the Free Software Foundation, either version 3 of the License, or 7*d5c9a868SElliott Hughes# (at your option) any later version. 8*d5c9a868SElliott Hughes# 9*d5c9a868SElliott Hughes# Mtools is distributed in the hope that it will be useful, 10*d5c9a868SElliott Hughes# but WITHOUT ANY WARRANTY; without even the implied warranty of 11*d5c9a868SElliott Hughes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*d5c9a868SElliott Hughes# GNU General Public License for more details. 13*d5c9a868SElliott Hughes# 14*d5c9a868SElliott Hughes# You should have received a copy of the GNU General Public License 15*d5c9a868SElliott Hughes# along with Mtools. If not, see <http://www.gnu.org/licenses/>. 16*d5c9a868SElliott Hughes# 17*d5c9a868SElliott Hughes# Makefile for Mtools 18*d5c9a868SElliott Hughes# 19*d5c9a868SElliott Hughes# check the Configure file for some examples of device-specific setups 20*d5c9a868SElliott Hughes# Berkeley flavors of Unix should include -DBSD in the CFLAGS. Pick 21*d5c9a868SElliott Hughes# a lock method... either -DLOCKF, -DFLOCK, or -DFCNTL and put that 22*d5c9a868SElliott Hughes# string in the CFLAGS line below. 23*d5c9a868SElliott Hughes 24*d5c9a868SElliott Hughes# User specified flags 25*d5c9a868SElliott HughesUSERCFLAGS = 26*d5c9a868SElliott HughesUSERLDFLAGS = 27*d5c9a868SElliott HughesUSERLDLIBS = 28*d5c9a868SElliott Hughes 29*d5c9a868SElliott HughesMAKEINFO = makeinfo 30*d5c9a868SElliott HughesTEXI2DVI = texi2dvi 31*d5c9a868SElliott HughesTEXI2PDF = texi2pdf 32*d5c9a868SElliott HughesTEXI2HTML = texi2html 33*d5c9a868SElliott Hughes 34*d5c9a868SElliott Hughes 35*d5c9a868SElliott Hughes# do not edit below this line 36*d5c9a868SElliott Hughes# ============================================================================= 37*d5c9a868SElliott Hughes 38*d5c9a868SElliott HughesSHELL = /bin/sh 39*d5c9a868SElliott Hughes 40*d5c9a868SElliott Hughestop_srcdir=@top_srcdir@ 41*d5c9a868SElliott Hughessrcdir=@srcdir@ 42*d5c9a868SElliott HughesVPATH=@srcdir@ 43*d5c9a868SElliott Hughes 44*d5c9a868SElliott Hughesprefix = @prefix@ 45*d5c9a868SElliott Hughesexec_prefix = @exec_prefix@ 46*d5c9a868SElliott Hughesbindir = @bindir@ 47*d5c9a868SElliott Hughesinfodir = @infodir@ 48*d5c9a868SElliott Hughesmandir = @mandir@ 49*d5c9a868SElliott Hughessysconfdir = @sysconfdir@ 50*d5c9a868SElliott Hughesdatarootdir = @datarootdir@ 51*d5c9a868SElliott Hughes 52*d5c9a868SElliott HughesCC = @CC@ 53*d5c9a868SElliott HughesCXX = @CXX@ 54*d5c9a868SElliott HughesMYCFLAGS = @CFLAGS@ 55*d5c9a868SElliott HughesMYCXXFLAGS = @CXXFLAGS@ 56*d5c9a868SElliott HughesCPPFLAGS = @CPPFLAGS@ 57*d5c9a868SElliott HughesHOST_ID = @HOST_ID@ 58*d5c9a868SElliott HughesDEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\" $(HOST_ID) 59*d5c9a868SElliott Hughes 60*d5c9a868SElliott HughesLDFLAGS = @LDFLAGS@ 61*d5c9a868SElliott HughesLIBS = @LIBS@ 62*d5c9a868SElliott HughesSHLIB = @SHLIB@ 63*d5c9a868SElliott HughesMACHDEPLIBS = @MACHDEPLIBS@ 64*d5c9a868SElliott HughesLN_S = @LN_S@ 65*d5c9a868SElliott Hughes 66*d5c9a868SElliott HughesINSTALL = @INSTALL@ 67*d5c9a868SElliott HughesINSTALL_PROGRAM = @INSTALL_PROGRAM@ 68*d5c9a868SElliott HughesINSTALL_DATA = @INSTALL_DATA@ 69*d5c9a868SElliott HughesINSTALL_INFO = @INSTALL_INFO@ 70*d5c9a868SElliott Hughes 71*d5c9a868SElliott Hughes.SUFFIXES: 72*d5c9a868SElliott Hughes.SUFFIXES: .o .c 73*d5c9a868SElliott Hughes.SUFFIXES: .o .c 74*d5c9a868SElliott Hughes 75*d5c9a868SElliott HughesMAN1 = floppyd.1 floppyd_installtest.1 mattrib.1 mbadblocks.1 mcat.1 \ 76*d5c9a868SElliott Hughesmcd.1 mcopy.1 mdel.1 mdeltree.1 mdir.1 mdu.1 mformat.1 \ 77*d5c9a868SElliott Hughesminfo.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \ 78*d5c9a868SElliott Hughesmrd.1 mren.1 mshortname.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 \ 79*d5c9a868SElliott Hughesmzip.1 80*d5c9a868SElliott Hughes 81*d5c9a868SElliott HughesMAN1EXT = 1 82*d5c9a868SElliott HughesMAN1DIR = $(DESTDIR)$(mandir)/man${MAN1EXT} 83*d5c9a868SElliott HughesMAN5 = mtools.5 84*d5c9a868SElliott HughesMAN5EXT = 5 85*d5c9a868SElliott HughesMAN5DIR = $(DESTDIR)$(mandir)/man${MAN5EXT} 86*d5c9a868SElliott Hughes 87*d5c9a868SElliott Hughes# objects for building mtools 88*d5c9a868SElliott HughesOBJS_MTOOLS = buffer.o charsetConv.o codepages.o config.o copyfile.o \ 89*d5c9a868SElliott Hughesdevice.o devices.o dirCache.o directory.o direntry.o dos2unix.o \ 90*d5c9a868SElliott Hughesexpand.o fat.o fat_free.o file.o file_name.o force_io.o hash.o init.o \ 91*d5c9a868SElliott Hugheslba.o llong.o lockdev.o match.o mainloop.o mattrib.o mbadblocks.o \ 92*d5c9a868SElliott Hughesmcat.o mcd.o mcopy.o mdel.o mdir.o mdoctorfat.o mdu.o \ 93*d5c9a868SElliott Hughesmformat.o minfo.o misc.o missFuncs.o mk_direntry.o mlabel.o mmd.o \ 94*d5c9a868SElliott Hughesmmount.o mmove.o mpartition.o mshortname.o mshowfat.o mzip.o mtools.o \ 95*d5c9a868SElliott Hughesoffset.o old_dos.o open_image.o patchlevel.o partition.o plain_io.o \ 96*d5c9a868SElliott Hughesprecmd.o privileges.o remap.o scsi_io.o scsi.o signal.o stream.o \ 97*d5c9a868SElliott Hughesstreamcache.o swap.o unix2dos.o unixdir.o tty.o vfat.o \ 98*d5c9a868SElliott Hughesstrtonum.o @FLOPPYD_IO_OBJ@ @XDF_IO_OBJ@ 99*d5c9a868SElliott Hughes 100*d5c9a868SElliott Hughes# objects for building mkmanifest 101*d5c9a868SElliott HughesOBJS_MKMANIFEST = missFuncs.o mkmanifest.o misc.o patchlevel.o 102*d5c9a868SElliott Hughes 103*d5c9a868SElliott Hughes# objects for building floppyd 104*d5c9a868SElliott HughesOBJS_FLOPPYD = floppyd.o llong.o lockdev.o 105*d5c9a868SElliott Hughes 106*d5c9a868SElliott Hughes# objects for building floppyd_installtest 107*d5c9a868SElliott HughesOBJS_FLOPPYD_INSTALLTEST = floppyd_installtest.o misc.o expand.o \ 108*d5c9a868SElliott Hughesprivileges.o strtonum.o 109*d5c9a868SElliott Hughes 110*d5c9a868SElliott HughesSRCS = buffer.c codepages.c config.c copyfile.c device.c devices.c \ 111*d5c9a868SElliott HughesdirCache.c directory.c direntry.c dos2unix.c expand.c fat.c \ 112*d5c9a868SElliott Hughesfat_free.c file.c file_name.c file_read.c force_io.c hash.c init.c \ 113*d5c9a868SElliott Hugheslba.c lockdev.c match.c mainloop.c mattrib.c mbadblocks.c mcat.c \ 114*d5c9a868SElliott Hughesmcd.c mcopy.c mdel.c mdir.c mdu.c mdoctorfat.c \ 115*d5c9a868SElliott Hughesmformat.c minfo.c misc.c missFuncs.c mk_direntry.c mlabel.c mmd.c \ 116*d5c9a868SElliott Hughesmmount.c mmove.c mpartition.c mshortname.c mshowfat.c mzip.c mtools.c \ 117*d5c9a868SElliott Hughesoffset.c old_dos.c open_image.c partition.c plain_io.c precmd.c \ 118*d5c9a868SElliott Hughesprivileges.c remap.c scsi_io.c scsi.c signal.c stream.c streamcache.c \ 119*d5c9a868SElliott Hughesswap.c unix2dos.s unixdir.c tty.c vfat.c mkmanifest.c \ 120*d5c9a868SElliott Hughes@FLOPPYD_IO_SRC@ @XDF_IO_SRC@ 121*d5c9a868SElliott Hughes 122*d5c9a868SElliott HughesSRCS-@USE_FLOPPYD@ += floppyd_io.c 123*d5c9a868SElliott HughesSRCS-@USE_XDF@ += xdf_io.c 124*d5c9a868SElliott Hughes 125*d5c9a868SElliott HughesSCRIPTS = mcheck mxtar uz tgz mcomp amuFormat.sh 126*d5c9a868SElliott Hughes 127*d5c9a868SElliott HughesLINKS=mattrib mcat mcd mcopy mdel mdeltree mdir mdu \ 128*d5c9a868SElliott Hughesmformat minfo mlabel mmd mmount mmove mpartition mrd mren mtype \ 129*d5c9a868SElliott Hughesmtoolstest mshortname mshowfat mbadblocks mzip 130*d5c9a868SElliott Hughes 131*d5c9a868SElliott HughesX_CFLAGS = @X_CFLAGS@ 132*d5c9a868SElliott HughesX_LIBS = @X_LIBS@ 133*d5c9a868SElliott HughesX_EXTRA_LIBS = @X_EXTRA_LIBS@ 134*d5c9a868SElliott HughesX_PRE_LIBS = @X_PRE_LIBS@ 135*d5c9a868SElliott HughesCFLAGS = $(CPPFLAGS) $(DEFS) $(MYCFLAGS) -fno-strict-aliasing -I. @extraincludedir@ -I@srcdir@ $(USERCFLAGS) 136*d5c9a868SElliott HughesCXXFLAGS = $(CPPFLAGS) $(DEFS) $(MYCXXFLAGS) -I. @extraincludedir@ -I@srcdir@ $(USERCFLAGS) 137*d5c9a868SElliott HughesLINK = $(CC) $(LDFLAGS) $(USERLDFLAGS) @extralibdir@ 138*d5c9a868SElliott HughesALLLIBS = $(USERLDLIBS) $(MACHDEPLIBS) $(SHLIB) $(LIBS) 139*d5c9a868SElliott HughesX_LDFLAGS = $(X_EXTRA_LIBS) $(X_LIBS) @FLOPPYD_LIBS@ $(LIBS) 140*d5c9a868SElliott HughesX_CCFLAGS = $(X_CFLAGS) $(CFLAGS) 141*d5c9a868SElliott Hughes 142*d5c9a868SElliott Hughesall: mtools $(LINKS) mkmanifest @FLOPPYD@ mtools.1 mtools.5 143*d5c9a868SElliott Hughes 144*d5c9a868SElliott Hughes%.o: %.c 145*d5c9a868SElliott Hughes $(CC) $(CFLAGS) -c $< 146*d5c9a868SElliott Hughes 147*d5c9a868SElliott Hughes#%.o: %.cpp 148*d5c9a868SElliott Hughes# $(CXX) $(CXXFLAGS) -c $< 149*d5c9a868SElliott Hughes 150*d5c9a868SElliott Hughesmtools: $(OBJS_MTOOLS) 151*d5c9a868SElliott Hughes $(LINK) $(OBJS_MTOOLS) -o $@ $(ALLLIBS) 152*d5c9a868SElliott Hughes 153*d5c9a868SElliott Hughesmkmanifest: $(OBJS_MKMANIFEST) 154*d5c9a868SElliott Hughes $(LINK) $(OBJS_MKMANIFEST) -o $@ $(ALLLIBS) 155*d5c9a868SElliott Hughes 156*d5c9a868SElliott Hughesfloppyd.o: floppyd.c 157*d5c9a868SElliott Hughes $(CC) $(X_CCFLAGS) -c $? 158*d5c9a868SElliott Hughes 159*d5c9a868SElliott Hughesfloppyd: $(OBJS_FLOPPYD) 160*d5c9a868SElliott Hughes $(LINK) $(OBJS_FLOPPYD) -o $@ $(X_LDFLAGS) 161*d5c9a868SElliott Hughesfloppyd_installtest: $(OBJS_FLOPPYD_INSTALLTEST) 162*d5c9a868SElliott Hughes $(LINK) $(OBJS_FLOPPYD_INSTALLTEST) -o $@ $(ALLLIBS) 163*d5c9a868SElliott Hughes 164*d5c9a868SElliott Hughes 165*d5c9a868SElliott Hughes$(LINKS): mtools 166*d5c9a868SElliott Hughes rm -f $@ && $(LN_S) mtools $@ 167*d5c9a868SElliott Hughes 168*d5c9a868SElliott Hughesmostlyclean: 169*d5c9a868SElliott Hughes -rm -f *~ *.orig *.o a.out core 2>/dev/null 170*d5c9a868SElliott Hughes 171*d5c9a868SElliott Hughesclean: mostlyclean 172*d5c9a868SElliott Hughes -rm -f mtools $(LINKS) floppyd floppyd_installtest mkmanifest *.info* *.dvi *.html 2>/dev/null 173*d5c9a868SElliott Hughes 174*d5c9a868SElliott Hughes 175*d5c9a868SElliott Hughestexclean: 176*d5c9a868SElliott Hughes -rm -f mtools.aux mtools.toc mtools.log 177*d5c9a868SElliott Hughes -rm -f mtools.cps mtools.pgs mtools.vrs 178*d5c9a868SElliott Hughes -rm -f mtools.cp mtools.fn mtools.ky 179*d5c9a868SElliott Hughes -rm -f mtools.pg mtools.tp mtools.vr 180*d5c9a868SElliott Hughes 181*d5c9a868SElliott Hughesinfo: mtools.info 182*d5c9a868SElliott Hughes%.info: %.texi sysconfdir.texi 183*d5c9a868SElliott Hughes $(MAKEINFO) -I$(srcdir) $< --no-split --output=$@ 184*d5c9a868SElliott Hughes 185*d5c9a868SElliott Hughesdvi: mtools.dvi 186*d5c9a868SElliott Hughes%.dvi: %.texi sysconfdir.texi 187*d5c9a868SElliott Hughes $(TEXI2DVI) $< 188*d5c9a868SElliott Hughes 189*d5c9a868SElliott Hughesps: mtools.ps 190*d5c9a868SElliott Hughes%.ps: %.dvi 191*d5c9a868SElliott Hughes dvips -f < $< > $@ 192*d5c9a868SElliott Hughes 193*d5c9a868SElliott Hughespdf: mtools.pdf 194*d5c9a868SElliott Hughes%.pdf: %.texi sysconfdir.texi 195*d5c9a868SElliott Hughes $(TEXI2PDF) $< 196*d5c9a868SElliott Hughes 197*d5c9a868SElliott Hughesmtools.1: mtools.tmpl.1 Makefile 198*d5c9a868SElliott Hughes sed "s%SYSCONFDIR%$(sysconfdir)/%g" $(srcdir)/mtools.tmpl.1 >mtools.1 199*d5c9a868SElliott Hughes 200*d5c9a868SElliott Hughesmtools.5: mtools.tmpl.5 Makefile 201*d5c9a868SElliott Hughes sed "s%SYSCONFDIR%$(sysconfdir)/%g" $(srcdir)/mtools.tmpl.5 >mtools.5 202*d5c9a868SElliott Hughes 203*d5c9a868SElliott Hughessysconfdir.texi: 204*d5c9a868SElliott Hughes echo "@set SYSCONFDIR $(sysconfdir)/" >sysconfdir.texi 205*d5c9a868SElliott Hughes 206*d5c9a868SElliott Hugheshtml: mtools.html mtools_toc.html 207*d5c9a868SElliott Hughes%.html %_toc.html: %.texi sysconfdir.texi 208*d5c9a868SElliott Hughes $(TEXI2HTML) $< 209*d5c9a868SElliott Hughes 210*d5c9a868SElliott Hughes# Don't cd, to avoid breaking install-sh references. 211*d5c9a868SElliott Hughesinstall-info: info 212*d5c9a868SElliott Hughes $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir) 213*d5c9a868SElliott Hughes if test -f mtools.info; then \ 214*d5c9a868SElliott Hughes for i in mtools.info*; do \ 215*d5c9a868SElliott Hughes $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \ 216*d5c9a868SElliott Hughes done; \ 217*d5c9a868SElliott Hughes else \ 218*d5c9a868SElliott Hughes for i in $(srcdir)/mtools.info*; do \ 219*d5c9a868SElliott Hughes $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \ 220*d5c9a868SElliott Hughes done; \ 221*d5c9a868SElliott Hughes fi; \ 222*d5c9a868SElliott Hughes if [ -n "$(INSTALL_INFO)" ] ; then \ 223*d5c9a868SElliott Hughes $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/mtools.info; \ 224*d5c9a868SElliott Hughes fi 225*d5c9a868SElliott Hughes 226*d5c9a868SElliott Hughesuninstall-info: 227*d5c9a868SElliott Hughes cd $(DESTDIR)$(infodir) && rm -f mtools.info* 228*d5c9a868SElliott Hughes 229*d5c9a868SElliott Hughesinstall: $(DESTDIR)$(bindir)/mtools @BINFLOPPYD@ install-man install-links \ 230*d5c9a868SElliott Hughes $(DESTDIR)$(bindir)/mkmanifest install-scripts install-info 231*d5c9a868SElliott Hughes 232*d5c9a868SElliott Hughesuninstall: uninstall-bin uninstall-man uninstall-links \ 233*d5c9a868SElliott Hughes uninstall-scripts 234*d5c9a868SElliott Hughes 235*d5c9a868SElliott Hughesdistclean: clean texclean 236*d5c9a868SElliott Hughes rm -f config.cache config.h config.status config.log Makefile 237*d5c9a868SElliott Hughesmaintainer-clean: distclean 238*d5c9a868SElliott Hughes 239*d5c9a868SElliott Hughes 240*d5c9a868SElliott Hughes$(DESTDIR)$(bindir)/floppyd: floppyd 241*d5c9a868SElliott Hughes $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 242*d5c9a868SElliott Hughes $(INSTALL_PROGRAM) floppyd $(DESTDIR)$(bindir)/floppyd 243*d5c9a868SElliott Hughes 244*d5c9a868SElliott Hughes$(DESTDIR)$(bindir)/floppyd_installtest: floppyd_installtest 245*d5c9a868SElliott Hughes $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 246*d5c9a868SElliott Hughes $(INSTALL_PROGRAM) floppyd_installtest $(DESTDIR)$(bindir)/floppyd_installtest 247*d5c9a868SElliott Hughes 248*d5c9a868SElliott Hughes$(DESTDIR)$(bindir)/mtools: mtools 249*d5c9a868SElliott Hughes $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 250*d5c9a868SElliott Hughes $(INSTALL_PROGRAM) mtools $(DESTDIR)$(bindir)/mtools 251*d5c9a868SElliott Hughes 252*d5c9a868SElliott Hughes$(DESTDIR)$(bindir)/mkmanifest: mkmanifest 253*d5c9a868SElliott Hughes $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 254*d5c9a868SElliott Hughes $(INSTALL_PROGRAM) mkmanifest $(DESTDIR)$(bindir)/mkmanifest 255*d5c9a868SElliott Hughes 256*d5c9a868SElliott Hughes#$(ETCDIR)/mtools: mtools.etc 257*d5c9a868SElliott Hughes# cp mtools.etc $(ETCDIR)/mtools 258*d5c9a868SElliott Hughes 259*d5c9a868SElliott Hughesinstall-links: $(DESTDIR)$(bindir)/mtools 260*d5c9a868SElliott Hughes @for j in $(LINKS); do \ 261*d5c9a868SElliott Hughes rm -f $(DESTDIR)$(bindir)/$$j ; \ 262*d5c9a868SElliott Hughes $(LN_S) mtools $(DESTDIR)$(bindir)/$$j ; \ 263*d5c9a868SElliott Hughes echo $(DESTDIR)$(bindir)/$$j ; \ 264*d5c9a868SElliott Hughes done 265*d5c9a868SElliott Hughes 266*d5c9a868SElliott Hughes## "z" is the older version of "gz"; the name is just *too* short 267*d5c9a868SElliott Hughesinstall-scripts: $(DESTDIR)$(bindir)/mtools 268*d5c9a868SElliott Hughes @$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 269*d5c9a868SElliott Hughes @for j in $(SCRIPTS) ; do \ 270*d5c9a868SElliott Hughes $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(DESTDIR)$(bindir)/$$j ; \ 271*d5c9a868SElliott Hughes echo $(DESTDIR)$(bindir)/$$j ; \ 272*d5c9a868SElliott Hughes done 273*d5c9a868SElliott Hughes rm -f $(DESTDIR)$(bindir)/lz 274*d5c9a868SElliott Hughes cd $(DESTDIR)$(bindir) && $(LN_S) uz lz 275*d5c9a868SElliott Hughes 276*d5c9a868SElliott Hughesinstall-man: 277*d5c9a868SElliott Hughes @$(top_srcdir)/mkinstalldirs $(MAN1DIR) 278*d5c9a868SElliott Hughes @for j in $(MAN1); do \ 279*d5c9a868SElliott Hughes $(INSTALL_DATA) $(srcdir)/$$j $(MAN1DIR)/$$j ; \ 280*d5c9a868SElliott Hughes echo $(MAN1DIR)/$$j ; \ 281*d5c9a868SElliott Hughes done 282*d5c9a868SElliott Hughes @$(top_srcdir)/mkinstalldirs $(MAN5DIR) 283*d5c9a868SElliott Hughes @for j in $(MAN5); do \ 284*d5c9a868SElliott Hughes $(INSTALL_DATA) $(srcdir)/$$j $(MAN5DIR)/$$j ; \ 285*d5c9a868SElliott Hughes echo $(MAN5DIR)/$$j ; \ 286*d5c9a868SElliott Hughes done 287*d5c9a868SElliott Hughes 288*d5c9a868SElliott Hughesuninstall-bin: 289*d5c9a868SElliott Hughes @for j in mtools mkmanifest; do \ 290*d5c9a868SElliott Hughes rm -f $(DESTDIR)$(bindir)/$$j ; \ 291*d5c9a868SElliott Hughes echo $(DESTDIR)$(bindir)/$$j ; \ 292*d5c9a868SElliott Hughes done 293*d5c9a868SElliott Hughes 294*d5c9a868SElliott Hughesuninstall-scripts: 295*d5c9a868SElliott Hughes @for j in $(SCRIPTS); do \ 296*d5c9a868SElliott Hughes rm -f $(DESTDIR)$(bindir)/$$j ; \ 297*d5c9a868SElliott Hughes echo $(DESTDIR)$(bindir)/$$j ; \ 298*d5c9a868SElliott Hughes done 299*d5c9a868SElliott Hughes 300*d5c9a868SElliott Hughesuninstall-man: 301*d5c9a868SElliott Hughes @for j in $(MAN1); do \ 302*d5c9a868SElliott Hughes rm -f $(MAN1DIR)/$$j ; \ 303*d5c9a868SElliott Hughes echo $(MAN1DIR)/$$j ; \ 304*d5c9a868SElliott Hughes done 305*d5c9a868SElliott Hughes @for j in $(MAN5); do \ 306*d5c9a868SElliott Hughes rm -f $(MAN5DIR)/$$j ; \ 307*d5c9a868SElliott Hughes echo $(MAN5DIR)/$$j ; \ 308*d5c9a868SElliott Hughes done 309*d5c9a868SElliott Hughes 310*d5c9a868SElliott Hughesuninstall-links: 311*d5c9a868SElliott Hughes @for j in $(LINKS); \ 312*d5c9a868SElliott Hughes do rm -f $(DESTDIR)$(bindir)/$$j ; \ 313*d5c9a868SElliott Hughes echo $(DESTDIR)$(bindir)/$$j ; \ 314*d5c9a868SElliott Hughes done 315*d5c9a868SElliott Hughes 316*d5c9a868SElliott Hughesdepend: $(SRCS) 317*d5c9a868SElliott Hughes makedepend -- $(CFLAGS) -- $^ 318*d5c9a868SElliott Hughes 319*d5c9a868SElliott Hughescheck: 320*d5c9a868SElliott Hughes echo No self tests included 321*d5c9a868SElliott Hughes# check target needed even if empty, in order to make life easier for 322*d5c9a868SElliott Hughes# automatic tools to install GNU soft 323*d5c9a868SElliott Hughes 324*d5c9a868SElliott Hughes 325*d5c9a868SElliott Hughes# DO NOT DELETE THIS LINE -- make depend depends on it. 326