# # This makefile requires make compliant with POSIX Issue 8. # It also reliably works with modern GNU make. # Do not make changes here. # Use the included .mak files. # .POSIX: IT = conferror -include config.mak it: $(IT) conferror: @echo "Please use ./configure first." ; exit 1 ALL_EXTRAS ::= INSTALL_EXTRAS ::= -include package/extras.mak include package/targets.mak include package/deps.mak INSTALL ::= ./tools/install.sh all: $(ALL_BINS) $(ALL_LIBS) $(ALL_EXTRAS) clean: @exec rm -rf -- $(ALL_BINS) service source bundle etc distclean: clean @exec rm -f -- config.mak tgz: distclean @. package/info && \ rm -rf ../../stage/$$package-$$version && \ cp -a . ../../stage/$$package-$$version && \ cd ../../stage && \ tar -zpcv --owner=0 --group=0 --numeric-owner --exclude=.git* -f $$package-$$version.tar.gz $$package-$$version && \ sha256sum $$package-$$version.tar.gz > $$package-$$version.tar.gz.sha256 && \ exec rm -rf $$package-$$version install: $(INSTALL_BINS) $(INSTALL_LIBS) $(INSTALL_EXTRAS) $(ALL_BINS) $(ALL_LIBS): @test -z $$(dirname "$@") || mkdir -p -- $$(dirname "$@") exec sed \ -e 's/@syslogdir@/$(syslogdir)/g' \ -e 's/@usrlogdir@/$(usrlogdir)/g' \ -e 's/@logdep@/$(logdep)/g' \ -e 's/@logconfig@/$(logconfig)/g' \ -e 's/@loguser@/$(loguser)/g' \ -e 's/@sysconfdir@/$(sysconfdir)/g' \ -e 's/@usrconfdir@/$(usrconfdir)/g' \ -e 's/@tmpfsdir@/$(tmpfsdir)/g' \ -e 's/@sysrundir@/$(sysrundir)/g' \ -e 's/@usrrundir@/$(usrrundir)/g' \ -e 's/@timeout@/$(timeout)/g' \ -e 's/@shebangdir@/$(shebangdir)/g' \ -- $^ > $@ $(INSTALL_BINS) $(INSTALL_LIBS): exec $(INSTALL) -D -m 644 $^ $(DESTDIR)/$@ grep -F -- $^ - < package/modes | { read name mode owner && \ if [ x$${mode} != x ] ; then chmod $${mode} $@ ; fi && \ if [ x$${owner} != x ] ; then chown -- $${owner} $@ ; fi ; } || exit 0 $(DESTDIR)$(exthome): exec $(INSTALL) -D -l $(package)-$(version) $@ $(SLASHCOMMAND_BINS): exec $(INSTALL) -D -l $(DESTDIR)$(exthome)/command/$$(basename $@) $@ update: $(DESTDIR)$(exthome) global-links: $(SLASHCOMMAND_BINS) .PHONY: \ it all clean distclean tgz update global-links \ install uninstall \ $(DESTDIR)$(exthome) $(SLASHCOMMAND_BINS)