# The default target all: runtree programs configs # Include configuration s=. -include obj/config.mk obj/config.mk: @echo "You need to run configure first." && false # Do not show strange errors if the BUILDSYS is not set # (it happens if noone called configure as reported above) ifdef BUILDSYS # We will use the libucw build system include $(BUILDSYS)/Maketop EXTRA_RUNDIRS=run share/man/man1 share/man/man8 # Add the detected flags to all the global flags CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS) LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS) install:: .PHONY: install include $(s)/server/Makefile include $(s)/client/Makefile include $(s)/pam/Makefile ifdef CONFIG_APACHE_MOD include $(s)/apache/Makefile endif # And finally the default rules of the build system include $(BUILDSYS)/Makebottom # Our own rules for building man pages. They are a little bit hacky # as a2x cannot produce output in a different directory. $(o)/%.1: $(s)/%.1.txt $(M)MAN $< $(Q)cp $< $@.txt $(Q)a2x -f manpage $@.txt $(Q)$(call symlink,$@,run/share/man/man1) $(o)/%.8: $(s)/%.8.txt $(M)MAN $< $(Q)cp $< $@.txt $(Q)a2x -f manpage $@.txt $(Q)$(call symlink,$@,run/share/man/man8) endif