X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Makefile.am;h=1c7f870ba19a18b525bacbfc2637a8891f11a155;hb=c66778bac36f8b1d827bd907307a084533427b33;hp=f1c76f8c2107c084a6fbb6376cabd00698b0cda2;hpb=1019fcfe2d612df24355f2597e661c28621b01c3;p=aweather diff --git a/Makefile.am b/Makefile.am index f1c76f8..1c7f870 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,18 +1,39 @@ -SUBDIRS = src data docs +SUBDIRS = lib src data docs -MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.h.in gtk-doc.make \ - configure depcomp install-sh Makefile.in missing +ACLOCAL_AMFLAGS = -I m4 + +MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.h.in config.sub \ + configure depcomp gtk-doc.make install-sh ltmain.sh \ + Makefile.in missing + +EXTRA_DIST = m4/gnulib-cache.m4 test: all (cd src && make test) +build: all + export DESTDIR="`pwd`/build"; \ + make -C ../aweather-win32 install; \ + make -C ../libgis-win32 install; \ + make -C ../rsl-win32 install; + touch $@ + +installers: $(PACKAGE)-$(VERSION).exe $(PACKAGE)-$(VERSION)-gtk.exe + +$(PACKAGE)-$(VERSION).exe: build + makensis -DVERSION=$(VERSION) aweather.nsi + +$(PACKAGE)-$(VERSION)-gtk.exe: build + makensis -DVERSION=$(VERSION) -DUSE_GTK aweather.nsi + release: all dist - svn cp \ - https://lug.rose-hulman.edu/svn/proj-$(PACKAGE)/trunk \ - https://lug.rose-hulman.edu/svn/proj-$(PACKAGE)/tags/$(VERSION) + @echo -en "\nRelease $(PACKAGE)-$(VERSION) (y/n): " + @read ans && [ "$$ans" != "y" ] && exit 1 || exit 0 + git tag -s -m "Version $(VERSION)" v$(VERSION) + git push --all echo $(VERSION) > LATEST scp LATEST $(PACKAGE)-$(VERSION).tar.* \ - "lug@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)"; \ + "spenceal@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)"; \ rm -f LATEST depscan: