From c2d396b20c1b0fc1ed3b070a41c9ed07c3930bde Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 27 Jul 2013 15:19:11 -0600 Subject: revamp the Makefiles to support manpages --- doc/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/Makefile b/doc/Makefile index 7af3750..4e496f3 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,2 +1,16 @@ -libre_datadir=$(docdir)/libretools -include ../common.mk +topdir := $(realpath ..) +include $(topdir)/config.mk + +files = $(wildcard *.md) + +all: PHONY build +build: PHONY + +install: $(addprefix $(DESTDIR)$(docdir)/libretools/,$(files)) + +$(DESTDIR)$(docdir)/libretools/%: % + install -Dm644 '$<' '$@' + +FORCE: PHONY +PHONY: +.PHONY: FORCE PHONY -- cgit v1.2.2