X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/utils/blobdiff_plain/9acadc2b1377453e1c10614920bd390c52227e8a..ef397e723d35bbc4efd6227abdae0e6e340b3a05:/xcopy/Makefile diff --git a/xcopy/Makefile b/xcopy/Makefile index 6f193bc..f13bcd1 100644 --- a/xcopy/Makefile +++ b/xcopy/Makefile @@ -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 + +