diff --git a/Makefile.mingw b/Makefile.mingw index af4b6ed..6782261 100755 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -9,9 +9,9 @@ CFLAGS = $(DBG) $(OPT) $(MACH) $(WARN) $(STD) $(STRICT) .SILENT: -hd: hd.c Makefile +hd: hd.c Makefile.mingw $(CC) $(CFLAGS) -o $@ $< clean: Makefile - rm -rf Debug Release hd + del hd.exe diff --git a/README.md b/README.md index fdeca99..70d2340 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ I wrote this little tool over 30 years ago. Used mainly on Linux nearly daily ev Before uploading to github, I added a --head, --tail (and --wide) options so it would be more useful on Windows when built with MinGW32. This because Windows (XP,7,10) doesn't have much in the way of redirects nor head nor tail nor less (although it does have more that can -be piped, at least on W10). I can't speak to Windows11 (yet). The Makefile is for Linux. +be piped, at least on W10). I can't speak to Windows11 (yet). The Makefile is for Linux and +Makefile.mingw is for MinGW32-make.
Usage: hd [-bhwB?] [--head=n] [--tail=n] [--skip=n] file [... file]