]> Pileus Git - aweather/blobdiff - Makefile.am
Version bump for 0.5
[aweather] / Makefile.am
index 98042cdbe2d39b687f1c41d215b51fecb0dd4448..c7a85c320b25aafd3fe27e9e0d891c345c9fb193 100644 (file)
@@ -1,14 +1,35 @@
-SUBDIRS = src data docs
+SUBDIRS = lib src data docs
 
-ACLOCAL_AMFLAGS=-I m4
+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 ../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
@@ -16,7 +37,7 @@ release: all dist
        git push --all
        echo $(VERSION) > LATEST
        scp LATEST $(PACKAGE)-$(VERSION).tar.* \
-               "spenceal@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)"; \
+               "spenceal@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)/files"; \
        rm -f LATEST
 
 depscan: