mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
$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
30 lines
551 B
Makefile
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
|