diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-07-29 17:09:42 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-07-29 17:09:42 +0200 |
commit | 0f815e9eed998a59f982d5fcba128f26017b73a2 (patch) | |
tree | 41ae7c2b8f1ee0f0cdaf12dc522c8c471e7a490c | |
parent | ebfb606b51658926a106bc30a5ee496cad711139 (diff) |
Removed nearly empty makefile for manual page.
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | doc/Makefile | 15 |
3 files changed, 10 insertions, 18 deletions
@@ -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) @@ -57,6 +57,8 @@ DEPS = $(OBJ:%.o=%.d) TARGET = $(PROJECT) DTARGET = $(TARGET)_dbg DIST_FILE = $(PROJECT)_$(VERSION).tar.gz +MANDIR1 = $(MANDIR)/man1 +MAN1 = $(PROJECT).1 FMOD = 0644 diff --git a/doc/Makefile b/doc/Makefile deleted file mode 100644 index cc16ee6..0000000 --- a/doc/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -include ../config.mk - -MANDIR1 = $(MANDIR)/man1 -MAN1 = $(PROJECT).1 - -install: $(MAN1) - install -d $(DESTDIR)$(MANDIR1) - @echo "install -m 644 $(MAN1) $(DESTDIR)$(MANDIR1)/$(MAN1)" - @sed -e "s/VERSION/$(VERSION)/g" \ - -e "s/DATE/`date +'%m %Y'`/g" \ - -e "s/PROJECT/$(PROJECT)/g" < $(MAN1) > $(DESTDIR)$(MANDIR1)/$(MAN1) - @chmod 644 $(DESTDIR)$(MANDIR1)/$(MAN1) - -uninstall: - $(RM) $(DESTDIR)$(MANDIR1)/$(MAN1) |