Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0162f176e2
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (57 sloc) 2.247 kb
SUBDIRS=$(LIBMOWGLI) include libathemecore modules src $(PODIR)
CLEANDIRS = ${SUBDIRS}
DISTCLEAN = extra.mk buildsys.mk config.log config.status atheme-services.pc
-include extra.mk
-include buildsys.mk
# explicit dependencies need to be expressed to ensure parallel builds don't die
pre-recurse: include/serno.h include/hooktypes.h
pre-depend: pre-recurse
libathemecore: $(LIBMOWGLI)
modules: libathemecore
src: libathemecore
include/serno.h:
@revh=; \
if [ -d .git ]; then \
revh=`git log -1 --pretty=oneline | cut -d' ' -f1 2>/dev/null` || :; \
fi; \
if [ -z "$$revh" ] && [ ! -r include/serno.h ]; then \
revh=`sed -ne 's/^node: \(............\).*/\1/p' .hg_archival.txt 2>/dev/null` || :; \
[ -n "$$revh" ] || revh=unknown; \
fi; \
[ -z "$$revh" ] || echo "#define SERNO \"$$revh\"" >include/serno.h
install-extra:
@echo "----------------------------------------------------------------"
@echo ">>> Remember to cd to ${prefix} and edit your config file.";
@echo "----------------------------------------------------------------"
i="atheme-services.pc"; \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${libdir}/pkgconfig && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/pkgconfig/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi
uninstall-extra:
i="atheme-services.pc"; \
if [ -f ${DESTDIR}${libdir}/pkgconfig/$$i ]; then \
if rm -f ${DESTDIR}${libdir}/pkgconfig/$$i; then \
${DELETE_OK}; \
else \
${DELETE_FAILED}; \
fi \
fi
dist:
@if [ ! -d .hg ]; then \
echo "make dist only works from a mercurial tree"; \
false; \
fi
hg parent --template '#define SERNO "{rev}:{node|short}"\n' >include/serno.h
@echo "Creating $(DISTNAME).tar.gz"
$(RM) -f $(DISTNAME)
$(LN) -s . $(DISTNAME)
hg manifest | awk '{ print "$(DISTNAME)/"$$1; } END { print "$(DISTNAME)/configure"; print "$(DISTNAME)/aclocal.m4"; print "$(DISTNAME)/include/sysconf.h.in"; print "$(DISTNAME)/include/serno.h"; }' | $(TAR) -chnzf $(DISTNAME).tar.gz -T /dev/stdin
$(RM) $(DISTNAME)
include/hooktypes.h: ${SRCDIR}/libathemecore/mkhooktypes.sh ${SRCDIR}/libathemecore/hooktypes.in
(cd libathemecore && touch .depend && ${MAKE} ../include/hooktypes.h)
buildsys.mk:
@echo "Run ./configure first you idiot."
@exit 1
Jump to Line
Something went wrong with that request. Please try again.