43 lines
1020 B
Makefile
43 lines
1020 B
Makefile
|
include pandoc-man.mk
|
||
|
|
||
|
ifeq ($(PREFIX),)
|
||
|
PREFIX := /usr/local
|
||
|
endif
|
||
|
|
||
|
datarootdir := $(PREFIX)/share
|
||
|
datadir := $(datarootdir)
|
||
|
mandir := $(datarootdir)/man
|
||
|
bindir := $(PREFIX)/bin
|
||
|
|
||
|
all: quickget.1 quickemu.1 quickemu_conf.1
|
||
|
|
||
|
clean:
|
||
|
rm *.1
|
||
|
|
||
|
install_docs: all
|
||
|
install -d $(DESTDIR)$(mandir)/man1
|
||
|
install -m 644 quickget.1 $(DESTDIR)$(mandir)/man1
|
||
|
install -m 644 quickemu.1 $(DESTDIR)$(mandir)/man1
|
||
|
install -m 644 quickemu_conf.1 $(DESTDIR)$(mandir)/man1
|
||
|
|
||
|
# install -m 644 quickgui.1 $(DESTDIR)$(mandir)/man1
|
||
|
|
||
|
install_bins:
|
||
|
install -d $(DESTDIR)$(bindir)
|
||
|
install -m 755 ../quickget $(DESTDIR)$(bindir)
|
||
|
install -m 755 ../quickemu $(DESTDIR)$(bindir)
|
||
|
install -m 755 ../macrecovery $(DESTDIR)$(bindir)
|
||
|
|
||
|
install: install_bins install_docs
|
||
|
|
||
|
uninstall::
|
||
|
rm -f $(DESTDIR)$(mandir)/man1/quickget.1
|
||
|
rm -f $(DESTDIR)$(mandir)/man1/quickemu.1
|
||
|
rm -f $(DESTDIR)$(mandir)/man1/quickemu_conf.1
|
||
|
rm -f $(DESTDIR)$(bindir)/quickget
|
||
|
rm -f $(DESTDIR)$(bindir)/quickemu
|
||
|
rm -f $(DESTDIR)$(bindir)/macrecovery
|
||
|
|
||
|
|
||
|
.PHONY: all
|