X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=Makefile.am;h=b8f74200619110b574c312cd191ee1300a96fcc0;hp=95437f2ee2027a5ac276ec2045336f6adf28762e;hb=9380d855c739df67d9af175f1d36ebec30346dda;hpb=838bc00015eb7f583c7cf4b3b1007697bf047da1 diff --git a/Makefile.am b/Makefile.am index 95437f2..b8f7420 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,8 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = yajl src data doc +SUBDIRS = data doc src extra -EXTRA_DIST = yajl run: all $(MAKE) -C src run @@ -11,3 +10,34 @@ run: all 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 +