From 0f815e9eed998a59f982d5fcba128f26017b73a2 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 29 Jul 2013 17:09:42 +0200 Subject: Removed nearly empty makefile for manual page. --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dea0043..b70110f 100644 --- a/Makefile +++ b/Makefile @@ -41,14 +41,19 @@ $(DTARGET): $(DOBJ) @echo "${CC} $<" @$(CC) -c -o $@ $< $(CPPFLAGS) $(DFLAGS) -install: $(TARGET) +install: $(TARGET) doc/$(MAN1) install -d $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(MANDIR1) install -m 755 $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) - @$(MAKE) $(MFLAGS) -C doc install + @echo "install -m 644 src/$(MAN1) $(DESTDIR)$(MANDIR1)/$(MAN1)" + @sed -e "s/VERSION/$(VERSION)/g" \ + -e "s/DATE/`date +'%m %Y'`/g" \ + -e "s/PROJECT/$(PROJECT)/g" < doc/$(MAN1) > $(DESTDIR)$(MANDIR1)/$(MAN1) + @chmod 644 $(DESTDIR)$(MANDIR1)/$(MAN1) uninstall: $(RM) $(DESTDIR)$(BINDIR)/$(TARGET) - @$(MAKE) $(MFLAGS) -C doc uninstall + $(RM) $(DESTDIR)$(MANDIR1)/$(MAN1) clean: $(RM) src/*.o src/*.do src/hints.js.h $(TARGET) $(DTARGET) -- cgit v1.2.3