Oops; let's leave off `-v' from the tar command line, or my nightly
[sgt/utils] / xcopy / Makefile
index 6f193bc..f13bcd1 100644 (file)
@@ -1,3 +1,5 @@
+DESTDIR = .
+
 X11LIB=-L/usr/X11R6/lib -lX11
 
 all: xcopy.1 xcopy
@@ -9,4 +11,18 @@ xcopy: xcopy.c
        halibut --man=$@ $<
 
 clean:
-       rm -f *.1 xcopy
+       rm -f *.1 xcopy *.html *.tar.gz
+
+html:
+       halibut --html=$(DESTDIR)/xcopy.html xcopy.but
+
+release: xcopy.1
+       mkdir -p reltmp/xcopy
+       ln -s ../../xcopy.c reltmp/xcopy
+       ln -s ../../xcopy.1 reltmp/xcopy
+       ln -s ../../xcopy.but reltmp/xcopy
+       ln -s ../../Makefile reltmp/xcopy
+       tar -C reltmp -chzf $(DESTDIR)/xcopy.tar.gz xcopy
+       rm -rf reltmp
+
+