Adjust 'after' so that it tries more rigorously to parse the input
[sgt/utils] / xcopy / Makefile
index a7eb226..2e683f4 100644 (file)
@@ -13,6 +13,8 @@ IDATA = -m 0644  # flags for installing data
 X11LIB=-L/usr/X11R6/lib -lX11
 
 all: xcopy.1 xcopy
+man: xcopy.1
+progs: xcopy
 
 xcopy: xcopy.c
        $(CC) $(CFLAGS) -o $@ $< $(X11LIB)
@@ -24,7 +26,8 @@ clean:
        rm -f *.1 xcopy *.html *.tar.gz
 
 html:
-       halibut --html=$(DESTDIR)/xcopy.html xcopy.but
+       halibut --html=xcopy.html xcopy.but
+       mv xcopy.html $(DESTDIR)/xcopy.html
 
 release: xcopy.1
        mkdir -p reltmp/xcopy
@@ -35,8 +38,11 @@ release: xcopy.1
        tar -C reltmp -chzf $(DESTDIR)/xcopy.tar.gz xcopy
        rm -rf reltmp
 
-install: xcopy xcopy.1
+install: install-progs install-man
+
+install-progs: xcopy
        mkdir -p $(BINDIR)
        $(INSTALL) $(IPROG) xcopy $(BINDIR)/xcopy
+install-man: xcopy.1
        mkdir -p $(MANDIR)
        $(INSTALL) $(IDATA) xcopy.1 $(MANDIR)/xcopy.1