ACLOCAL_AMFLAGS = -I m4 SUBDIRS = data doc src extra run: all $(MAKE) -C src run debug: all $(MAKE) -C src debug if WIN32 INSTALLER_NAME = yoinksetup-$(VERSION).exe .PHONY: package package: $(INSTALLER_NAME) $(INSTALLER_NAME): all @echo "Creating win32 installer..." @(sh make-win32-installer.sh $(INSTALLER_NAME) 2> installer.log 1>&2 && \ rm installer.log && echo "Done.") || \ (echo "Installer compilation failed!"; \ echo "Check installer.log for details."; exit 1) else if LINUX .PHONY: package package: rpm rpm: dist-bzip2 @echo "Creating RPM package..." @($(RPMBUILD) -ba --nodeps extra/yoink.spec 2> rpmbuild.log 1>&2 && \ rm rpmbuild.log && echo "Done.") || \ (echo "rpmbuild failed!"; \ echo "Check rpmbuild.log for details."; exit 1) endif endif