summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-07-29 17:09:42 +0200
committerDaniel Carl <danielcarl@gmx.de>2013-07-29 17:09:42 +0200
commit0f815e9eed998a59f982d5fcba128f26017b73a2 (patch)
tree41ae7c2b8f1ee0f0cdaf12dc522c8c471e7a490c
parentebfb606b51658926a106bc30a5ee496cad711139 (diff)
Removed nearly empty makefile for manual page.
-rw-r--r--Makefile11
-rw-r--r--config.mk2
-rw-r--r--doc/Makefile15
3 files changed, 10 insertions, 18 deletions
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)
diff --git a/config.mk b/config.mk
index a776d8b..fa90ff6 100644
--- a/config.mk
+++ b/config.mk
@@ -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)