-compile:
- g++ -O2 -I. wdq2wav.cpp -o wdq2wav
+base := wdq2wav
+
+all: compile
+
+clean:
+ rm -f $(base) $(base).o
+
+compile: wdq2wav
+
+wdq2wav: wdq2wav.cpp wdq2wav.h
+ g++ -O2 -I. $(base).cpp -o $(base)
install: compile
- install -m 0755 -u root -g root wdq2wav $(DESTDIR)/usr/bin
- install -m 0644 -u root -g root wdq2wav.1 $(DESTDIR)/usr/share/man/man1
+ install -m 0755 -o root -g root wdq2wav $(DESTDIR)/usr/bin
+ install -m 0644 -o root -g root wdq2wav.1 $(DESTDIR)/usr/share/man/man1
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH WDQ2WAV 1 "January 20, 2003"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+wdq2wav \- convert a WinDAQ file channel to a wav file
+.SH SYNOPSIS
+.B wdq2wav windaq-file channel-number wav-file
+.RI [ OPTIONS ]
+.SH DESCRIPTION
+.B wdq2wav
+extracts a channel from a WinDAQ file and produces a .wav file.
+.SH OPTIONS
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH AUTHOR
+This manual page was written by Kevin M. Rosenberg
+<kevin@rosenberg.net>.