]> Pileus Git - aweather/blobdiff - Makefile.am
Add manpage for wsr88ddec
[aweather] / Makefile.am
index 74c25e0d3acd40b930151e1d5bdedbc802787eae..5b262835077adf4d29748129a0e1ef57866ba9e1 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = src data docs
+SUBDIRS = lib src data docs
 
 ACLOCAL_AMFLAGS = -I m4
 
@@ -6,9 +6,26 @@ 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;
+       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