X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=Makefile.am;h=c7a85c320b25aafd3fe27e9e0d891c345c9fb193;hp=bc1d29c44a1c29d5c6cd70c4087dcd3cafc48a86;hb=c77f73c18bba99728178057fcce0441aab3a4026;hpb=1398794a7901ac38c29856d6d08b5f9fac15ff1a diff --git a/Makefile.am b/Makefile.am index bc1d29c..c7a85c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,56 @@ -SUBDIRS = src +SUBDIRS = lib src data docs + +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 - LD_LIBRARY_PATH=/usr/local/trmm/GVBOX/lib/ \ - ./src/aweather + (cd src && make test) + +build: all + export DESTDIR="`pwd`/build"; \ + make -C ../aweather-win32 install; \ + make -C ../grits-win32 install; \ + make -C ../rsl-win32 install; + find build -name '*.a' -delete + find build -name '*.la' -delete + rm -rf build/share/rsl/colors + rm -rf build/include + 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 + @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.* \ + "spenceal@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)/files"; \ + rm -f LATEST -maintainer-clean-local: - rm -f aclocal.m4 compile config.guess config.h.in \ - configure depcomp install-sh Makefile.in missing +depscan: + gtkdoc-depscan \ + --book=atk \ + --book=gdk \ + --book=gdk-pixbuf \ + --book=glib \ + --book=gio \ + --book=gobject \ + --book=gtk \ + --book=pango \ + --book=libsoup-2.4 \ + --list-unknown \ + "$@" \ + src/*.c