]> Pileus Git - aweather/blob - Makefile.am
Remove gnulib, it's a huge pain
[aweather] / Makefile.am
1 SUBDIRS = data src docs
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.h.in config.sub \
6                        configure depcomp gtk-doc.make install-sh ltmain.sh \
7                        Makefile.in missing
8
9 test: all
10         (cd src && make test)
11
12 build: all
13         export DESTDIR="`pwd`/build"; \
14         make -C ../aweather-win32 install; \
15         make -C ../grits-win32 install; \
16         make -C ../rsl-win32 install;
17         find build -name '*.a'  -delete
18         find build -name '*.la' -delete
19         rm -rf build/share/rsl/colors
20         rm -rf build/include
21         touch $@
22
23 installers: $(PACKAGE)-$(VERSION).exe $(PACKAGE)-$(VERSION)-gtk.exe
24
25 $(PACKAGE)-$(VERSION).exe: build
26         makensis -DVERSION=$(VERSION) aweather.nsi
27
28 $(PACKAGE)-$(VERSION)-gtk.exe: build
29         makensis -DVERSION=$(VERSION) -DUSE_GTK aweather.nsi
30
31 release: all dist
32         @echo -en "\nRelease $(PACKAGE)-$(VERSION) (y/n): "
33         @read ans && [ "$$ans" != "y" ] && exit 1 || exit 0
34         git tag -s -m "Version $(VERSION)" v$(VERSION)
35         git push --all
36         echo $(VERSION) > LATEST
37         scp LATEST $(PACKAGE)-$(VERSION).tar.* \
38                 "spenceal@lug.rose-hulman.edu:/home/lug/htdocs/proj/$(PACKAGE)/files"; \
39         rm -f LATEST
40
41 depscan:
42         gtkdoc-depscan             \
43                 --book=atk         \
44                 --book=gdk         \
45                 --book=gdk-pixbuf  \
46                 --book=glib        \
47                 --book=gio         \
48                 --book=gobject     \
49                 --book=gtk         \
50                 --book=pango       \
51                 --book=libsoup-2.4 \
52                 --list-unknown     \
53                 "$@"               \
54                 src/*.c