X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Makefile.am;h=a6ca4f2e140404ff821406e5cf41640d38aea783;hb=652bfd6168ab54906a3f3a179eb0710ab3a4172b;hp=1c178d645071bba24de7bc1a140774aebd8f1c7d;hpb=e77401d625645dedbe3d8abdbb030adbc8ac4cde;p=ncmpc.git diff --git a/Makefile.am b/Makefile.am index 1c178d6..a6ca4f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,6 +5,7 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects AM_CPPFLAGS = \ + $(CURSES_LIB) \ $(LIBMPDCLIENT_CFLAGS) \ $(GLIB_CFLAGS) \ $(LIBLIRCCLIENT_CFLAGS) \ @@ -22,13 +23,14 @@ ncmpc_headers = \ src/conf.h \ src/command.h \ src/ncu.h \ + src/ncfix.h \ src/player_command.h \ src/window.h \ src/title_bar.h \ src/progress_bar.h \ src/status_bar.h \ src/screen.h \ - src/screen_message.h \ + src/screen_status.h \ src/screen_interface.h \ src/screen_list.h \ src/screen_find.h \ @@ -61,11 +63,13 @@ ncmpc_headers = \ src/plugin.h \ src/lyrics.h \ src/str_pool.h \ - src/lirc.h + src/lirc.h \ + src/ncmpc_curses.h bin_PROGRAMS = src/ncmpc src_ncmpc_LDADD = \ + $(CURSES_LIB) \ $(LIBMPDCLIENT_LIBS) \ $(GLIB_LIBS) \ $(LIBLIRCCLIENT_LIBS) @@ -86,7 +90,7 @@ src_ncmpc_SOURCES = \ src/progress_bar.c \ src/status_bar.c \ src/screen.c \ - src/screen_message.c \ + src/screen_status.c \ src/screen_list.c \ src/screen_find.c \ src/screen_utils.c \ @@ -152,7 +156,7 @@ src_ncmpc_SOURCES += src/lirc.c endif -# build the smalles possible ncmpc binary +# build the smallest possible ncmpc binary src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES)) $(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@ strip --strip-all $@ @@ -168,7 +172,7 @@ check_PROGRAMS = \ test_run_hscroll_SOURCES = test/run_hscroll.c src/hscroll.c src/charset.c test_run_hscroll_CPPFLAGS = -I$(srcdir)/src $(AM_CPPFLAGS) -test_run_hscroll_LDADD = $(GLIB_LIBS) +test_run_hscroll_LDADD = @CURSES_LIB@ $(GLIB_LIBS) # # sparse @@ -205,10 +209,32 @@ doc_DATA = \ AUTHORS NEWS README man_MANS = doc/ncmpc.1 +if ENABLE_DOCUMENTATION +doc/api/html/index.html: doc/doxygen.conf + @mkdir -p $(@D) + $(DOXYGEN) $< + +all-local: doc/api/html/index.html + +clean-local: + rm -rf doc/api + +# copied from MPD, disabled --jn +#--------------------------------------- +#install-data-local: doc/api/html/index.html +# $(mkinstalldirs) $(DESTDIR)$(docdir)/api/html +# $(INSTALL_DATA) -c -m 644 doc/api/html/*.* \ +# $(DESTDIR)$(docdir)/api/html +# +#uninstall-local: +# rm -f $(DESTDIR)$(docdir)/api/html/*.* +#--------------------------------------- +endif + # # Distribution # EXTRA_DIST = autogen.sh \ $(lyrics_plugins) \ - $(man_MANS) $(doc_DATA) + $(man_MANS) $(doc_DATA) doc/doxygen.conf