Files
znc/man/Makefile.in
psychon 84ae0f2edd Set $SHELL in Makefiles
$SHELL controls which shell is used for executing the commands in a Makefile.
Since modules/Makefile does not work with ksh, we need to find a "proper" shell.
Luckily, configure already did that job and announces its findings via @SHELL@.

This should make our Makefile work on Solaris.
Thanks to LeftWing aka Joshua M. Clulow.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2064 726aef4b-f618-498e-8847-2d620e286838
2010-07-05 15:54:03 +00:00

30 lines
551 B
Makefile

SHELL := @SHELL@
# Support out-of-tree builds
VPATH := @srcdir@
prefix := @prefix@
exec_prefix := @exec_prefix@
datarootdir := @datarootdir@
mandir := @mandir@
MAN1 := znc.1.gz znc-buildmod.1.gz znc-config.1.gz
all: $(MAN1)
%.1.gz: %.1 Makefile
gzip -9 <$< >$@
clean:
-rm -f $(MAN1)
install: $(MAN1)
mkdir -p $(DESTDIR)$(mandir)/man1
install -m 644 $(MAN1) $(DESTDIR)$(mandir)/man1
uninstall:
for file in $(MAN1) ; do \
rm $(DESTDIR)$(mandir)/man1/$$file || exit 1 ; \
done
rmdir $(DESTDIR)$(mandir)/man1