From af10994fc0237affeb7f2ead4a80650dc7669c42 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 29 May 2015 10:42:55 +0200 Subject: [PATCH] Small Makefile simplification --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 781dd50..2d617f8 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,14 @@ MANDIR= /usr/share/man MTDIR=$(BINDIR) -all: mt stinit +PROGS=mt stinit -mt: mt.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o mt mt.c +all: $(PROGS) -stinit: stinit.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c +%: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< -install: mt stinit +install: $(PROGS) install -s mt $(MTDIR) install -c -m 444 mt.1 $(MANDIR)/man1 (if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \