EMILE/docs/Makefile

36 lines
706 B
Makefile
Raw Normal View History

MANPAGES = emile.8.gz emile-install.8.gz emile-set-cmdline.8.gz emile-first-tune.8.gz emile-map-set.8.gz emile-set-output.8.gz
MANPATH = /usr/share/man/man8
MANPAGESWPATH = $(foreach file, $(MANPAGES), $(MANPATH)/$(file))
2005-11-08 02:18:06 +00:00
DISFILES = $(MANPAGES)
all: $(MANPAGES)
%.8: %.sgml
docbook-to-man $< > $@
%.8.gz: %.8
gzip -9c $< > $@
clean:
-rm -f *.8.gz
install: all
install -m 755 -d $(DESTDIR)/$(PREFIX)/$(MANPATH)
install -m 644 *.8.gz $(DESTDIR)/$(PREFIX)/$(MANPATH)
uninstall:
rm -f $(MANPAGESWPATH)
2005-11-08 02:18:06 +00:00
dist:
for file in $(DISTFILES); do \
dir=$$(dirname $$file); \
if [ "$$dir" != "" ] ; then \
mkdir -p $(DISTDIR)/docs/$$dir; \
fi; \
cp -p $$file $(DISTDIR)/docs/$$file; \
done