Introduce make targets `progs' and `man', for building the actual
[sgt/utils] / multi / Makefile
index 1524855..f2ea823 100644 (file)
@@ -11,6 +11,8 @@ IPROG =#   flags for installing programs (default none)
 IDATA = -m 0644  # flags for installing data
 
 all: multi.1
+man: multi.1
+progs:;
 
 %.1: %.but
        halibut --man=$@ $<
@@ -30,8 +32,10 @@ release: multi.1
        tar -C reltmp -chzf $(DESTDIR)/multi.tar.gz multi
        rm -rf reltmp
 
-install: multi.1
+install: install-progs install-man
+install-progs:
        mkdir -p $(SCRIPTDIR)
        $(INSTALL) $(IPROG) multi $(SCRIPTDIR)/multi
+install-man: multi.1
        mkdir -p $(MANDIR)
        $(INSTALL) $(IDATA) multi.1 $(MANDIR)/multi.1