mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
36 lines
706 B
Makefile
36 lines
706 B
Makefile
|
|
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))
|
|
|
|
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)
|
|
|
|
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
|