X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=64939a31a32ffdedc815002f3948c54025c90b0c;hb=a9c7078e69b49d54f86169fde67b7fee55256b52;hp=535b1d052f7b3c887197800a2154cb93dbd32014;hpb=5761f0ec012080b2f12c5e29a93a97b9a7ede4b4;p=aweather diff --git a/src/Makefile.am b/src/Makefile.am index 535b1d0..64939a3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,6 +8,8 @@ aweather_SOURCES = main.c \ aweather-gui.c aweather-gui.h \ aweather-location.c aweather-location.h aweather_CPPFLAGS = \ + -DBROWSER="\"$(browser)\"" \ + -DHTMLDIR="\"$(dots)$(htmldir)\"" \ -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \ -DPLUGINSDIR="\"$(dots)$(pkglibdir)\"" aweather_LDADD = $(GIS_LIBS) @@ -19,6 +21,9 @@ if WIN32 AM_LDFLAGS += -mwindows aweather_SOURCES += resource.rc dots = .. +browser = "open" +else +browser = "xdg-open" endif .rc.o: ../data/aweather.ico