2015-02-27 16:34:57 +01:00
|
|
|
# Specify automake version.
|
2015-03-01 20:17:30 +01:00
|
|
|
AUTOMAKE_OPTIONS = 1.11.3
|
2014-08-29 13:06:40 +02:00
|
|
|
|
2017-05-28 02:18:09 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I subprojects/libnkutils -I subprojects/libgwater ${ACLOCAL_FLAGS}
|
2016-02-19 22:43:53 +01:00
|
|
|
|
2016-12-09 19:49:49 +01:00
|
|
|
AM_YFLAGS = -d
|
|
|
|
|
2016-02-19 22:43:53 +01:00
|
|
|
noinst_LIBRARIES =
|
2017-05-28 02:18:09 +02:00
|
|
|
EXTRA_DIST=
|
2018-03-29 12:47:17 +02:00
|
|
|
noinst_PROGRAMS=
|
2017-05-28 02:18:09 +02:00
|
|
|
check_PROGRAMS=
|
|
|
|
TESTS=
|
|
|
|
include $(top_srcdir)/subprojects/libnkutils/libnkutils-nolibtool.mk
|
2016-02-19 22:43:53 +01:00
|
|
|
include $(top_srcdir)/libgwater-xcb-nolibtool.mk
|
|
|
|
|
2017-02-16 22:32:15 +01:00
|
|
|
##
|
|
|
|
# PKG CONFIG file
|
|
|
|
##
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = pkgconfig/rofi.pc
|
|
|
|
|
2017-01-01 16:52:25 +01:00
|
|
|
|
|
|
|
BUILT_SOURCES=\
|
|
|
|
lexer/theme-parser.h\
|
|
|
|
lexer/theme-parser.c\
|
2017-10-31 18:00:24 +01:00
|
|
|
lexer/theme-lexer.c\
|
|
|
|
resources/resources.c\
|
|
|
|
resources/resources.h
|
|
|
|
|
|
|
|
$(top_builddir)/resources/resources.c: $(top_srcdir)/resources/resources.xml
|
|
|
|
mkdir -p $(top_builddir)/resources/
|
2017-10-31 19:31:58 +01:00
|
|
|
$(GLIB_COMPILE_RESOURCES) $< --generate-source --target=$@ --sourcedir=$(top_srcdir)
|
2017-10-31 18:00:24 +01:00
|
|
|
|
|
|
|
$(top_builddir)/resources/resources.h: $(top_srcdir)/resources/resources.xml
|
|
|
|
mkdir -p $(top_builddir)/resources/
|
2017-10-31 19:31:58 +01:00
|
|
|
$(GLIB_COMPILE_RESOURCES) $< --generate-header --target=$@ --sourcedir=$(top_srcdir)
|
2017-01-01 16:52:25 +01:00
|
|
|
|
2017-03-26 23:19:30 +02:00
|
|
|
$(top_builddir)/lexer/theme-lexer.c: $(top_srcdir)/lexer/theme-lexer.l
|
|
|
|
|
|
|
|
$(top_builddir)/lexer/theme-parser.c $(top_builddir)/lexer/theme-parser.h: $(top_srcdir)/lexer/theme-parser.y
|
|
|
|
|
2017-02-17 14:06:31 +01:00
|
|
|
rofiincludedir=${includedir}/rofi
|
|
|
|
rofiinclude_HEADERS=\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
2017-10-03 20:50:38 +02:00
|
|
|
include/helper.h\
|
2018-07-14 18:05:34 +02:00
|
|
|
include/rofi-types.h\
|
|
|
|
include/rofi-icon-fetcher.h
|
2017-01-01 16:52:25 +01:00
|
|
|
|
2014-03-18 08:59:42 +01:00
|
|
|
##
|
|
|
|
# Rofi the program
|
|
|
|
##
|
2014-03-17 18:00:09 +01:00
|
|
|
bin_PROGRAMS=rofi
|
|
|
|
|
2016-10-27 15:28:11 +02:00
|
|
|
dist_bin_SCRIPTS=\
|
|
|
|
script/rofi-sensible-terminal\
|
|
|
|
script/rofi-theme-selector
|
2015-08-03 20:40:01 +02:00
|
|
|
|
2016-03-12 14:00:19 +01:00
|
|
|
nodist_rofi_SOURCES=\
|
|
|
|
$(top_builddir)/gitconfig.h
|
|
|
|
|
2017-01-08 21:36:06 +01:00
|
|
|
SOURCES=\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/rofi.c\
|
2016-02-06 13:06:58 +01:00
|
|
|
source/view.c\
|
2016-01-07 19:47:37 +01:00
|
|
|
source/mode.c\
|
2015-09-19 21:32:03 +02:00
|
|
|
source/keyb.c\
|
2016-02-16 11:12:58 +01:00
|
|
|
config/config.c\
|
2015-09-19 21:32:03 +02:00
|
|
|
source/helper.c\
|
2015-11-14 13:47:45 +01:00
|
|
|
source/timings.c\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/history.c\
|
2016-12-09 19:49:49 +01:00
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
2018-06-09 19:13:57 +02:00
|
|
|
source/rofi-icon-fetcher.c\
|
2016-10-08 18:57:59 +02:00
|
|
|
source/widgets/box.c\
|
2017-01-05 18:33:57 +01:00
|
|
|
source/widgets/container.c\
|
2018-06-09 19:13:57 +02:00
|
|
|
source/widgets/icon.c\
|
2016-10-08 18:57:59 +02:00
|
|
|
source/widgets/widget.c\
|
|
|
|
source/widgets/textbox.c\
|
|
|
|
source/widgets/listview.c\
|
|
|
|
source/widgets/scrollbar.c\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/xrmoptions.c\
|
2017-06-01 12:00:51 +02:00
|
|
|
source/xcb.c\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/dialogs/run.c\
|
|
|
|
source/dialogs/ssh.c\
|
|
|
|
source/dialogs/drun.c\
|
|
|
|
source/dialogs/dmenu.c\
|
|
|
|
source/dialogs/combi.c\
|
|
|
|
source/dialogs/window.c\
|
|
|
|
source/dialogs/script.c\
|
2016-05-30 10:25:58 +02:00
|
|
|
source/dialogs/help-keys.c\
|
2017-06-01 14:55:17 +02:00
|
|
|
include/display.h\
|
2016-03-01 18:11:55 +01:00
|
|
|
include/xcb.h\
|
|
|
|
include/xcb-internal.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
include/rofi.h\
|
2017-06-20 21:02:13 +02:00
|
|
|
include/rofi-types.h\
|
2018-06-09 19:13:57 +02:00
|
|
|
include/rofi-icon-fetcher.h\
|
2016-01-07 19:47:37 +01:00
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
2016-01-07 16:01:56 +01:00
|
|
|
include/settings.h\
|
2015-09-19 21:32:03 +02:00
|
|
|
include/keyb.h\
|
2016-02-06 13:06:58 +01:00
|
|
|
include/view.h\
|
2016-02-06 14:56:13 +01:00
|
|
|
include/view-internal.h\
|
2015-09-19 21:32:03 +02:00
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2015-11-14 13:47:45 +01:00
|
|
|
include/timings.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
include/history.h\
|
2016-12-09 19:49:49 +01:00
|
|
|
include/theme.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
include/css-colors.h\
|
2016-10-08 18:57:59 +02:00
|
|
|
include/widgets/box.h\
|
2017-01-05 18:33:57 +01:00
|
|
|
include/widgets/container.h\
|
2018-06-09 19:13:57 +02:00
|
|
|
include/widgets/icon.h\
|
2016-10-08 18:57:59 +02:00
|
|
|
include/widgets/widget.h\
|
2016-10-09 10:13:15 +02:00
|
|
|
include/widgets/widget-internal.h\
|
2016-10-08 18:57:59 +02:00
|
|
|
include/widgets/textbox.h\
|
|
|
|
include/widgets/listview.h\
|
|
|
|
include/widgets/scrollbar.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
include/xrmoptions.h\
|
|
|
|
include/dialogs/ssh.h\
|
|
|
|
include/dialogs/run.h\
|
|
|
|
include/dialogs/drun.h\
|
|
|
|
include/dialogs/dmenu.h\
|
|
|
|
include/dialogs/combi.h\
|
|
|
|
include/dialogs/script.h\
|
|
|
|
include/dialogs/window.h\
|
2016-02-21 17:14:02 +01:00
|
|
|
include/dialogs/dialogs.h\
|
2017-10-31 18:00:24 +01:00
|
|
|
include/dialogs/help-keys.h\
|
2019-04-02 13:51:53 +02:00
|
|
|
include/dialogs/dmenuscriptshared.h\
|
2017-10-31 18:00:24 +01:00
|
|
|
resources/resources.c\
|
|
|
|
resources/resources.h
|
2016-02-16 11:12:58 +01:00
|
|
|
|
2017-01-08 21:36:06 +01:00
|
|
|
rofi_SOURCES=\
|
|
|
|
lexer/theme-parser.y\
|
|
|
|
lexer/theme-lexer.l\
|
2017-10-31 18:00:24 +01:00
|
|
|
resources/resources.xml\
|
2017-01-08 21:36:06 +01:00
|
|
|
$(SOURCES)
|
|
|
|
|
2016-02-16 11:12:58 +01:00
|
|
|
rofi_CFLAGS=\
|
|
|
|
$(AM_CFLAGS)\
|
|
|
|
$(glib_CFLAGS)\
|
2017-05-28 02:18:09 +02:00
|
|
|
$(NKUTILS_CFLAGS)\
|
2016-02-19 22:43:53 +01:00
|
|
|
$(GW_XCB_CFLAGS)\
|
2016-02-16 11:12:58 +01:00
|
|
|
$(pango_CFLAGS)\
|
|
|
|
$(libsn_CFLAGS)\
|
|
|
|
$(cairo_CFLAGS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_CFLAGS)\
|
2016-02-16 11:12:58 +01:00
|
|
|
-DMANPAGE_PATH="\"$(mandir)/\""\
|
|
|
|
-I$(top_srcdir)/include/\
|
2017-05-04 21:41:38 +02:00
|
|
|
-I$(top_builddir)/lexer/\
|
2017-05-04 21:49:24 +02:00
|
|
|
-I$(top_srcdir)/lexer/\
|
2017-10-31 18:16:08 +01:00
|
|
|
-I$(top_builddir)/resources/\
|
2016-02-16 11:12:58 +01:00
|
|
|
-I$(top_srcdir)/config/\
|
|
|
|
-I$(top_builddir)/\
|
2016-04-01 19:51:24 +02:00
|
|
|
-Werror=missing-prototypes\
|
2017-01-01 16:32:01 +01:00
|
|
|
-DSYSCONFDIR=\"$(sysconfdir)\"\
|
2017-02-17 20:02:12 +01:00
|
|
|
-DTHEME_CONVERTER\
|
2017-04-17 17:46:01 +02:00
|
|
|
-DPLUGIN_PATH=\"${libdir}/rofi\"\
|
2017-04-17 18:18:07 +02:00
|
|
|
-DTHEME_DIR=\"$(themedir)\"
|
2016-02-16 11:12:58 +01:00
|
|
|
|
|
|
|
rofi_LDADD=\
|
|
|
|
$(glib_LIBS)\
|
2017-05-28 02:18:09 +02:00
|
|
|
$(NKUTILS_LIBS)\
|
2016-02-19 22:43:53 +01:00
|
|
|
$(GW_XCB_LIBS)\
|
2016-02-16 11:12:58 +01:00
|
|
|
$(libsn_LIBS)\
|
|
|
|
$(pango_LIBS)\
|
|
|
|
$(cairo_LIBS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_LIBS)\
|
2020-02-14 14:27:03 +01:00
|
|
|
$(libjpeg_LIBS)\
|
2016-02-16 11:12:58 +01:00
|
|
|
$(LIBS)
|
2014-03-17 18:00:09 +01:00
|
|
|
|
|
|
|
##
|
|
|
|
# Manpage
|
|
|
|
##
|
2016-02-16 11:12:58 +01:00
|
|
|
dist_man1_MANS=\
|
|
|
|
doc/rofi.1\
|
2017-11-05 15:28:17 +01:00
|
|
|
doc/rofi-theme-selector.1\
|
2015-09-15 07:54:48 +02:00
|
|
|
doc/rofi-sensible-terminal.1
|
2014-03-17 18:00:09 +01:00
|
|
|
|
2017-03-18 15:57:34 +01:00
|
|
|
dist_man5_MANS=\
|
2020-02-02 17:21:21 +01:00
|
|
|
doc/rofi-theme.5\
|
|
|
|
doc/rofi-script.5
|
2017-03-18 15:57:34 +01:00
|
|
|
|
2018-03-29 12:47:56 +02:00
|
|
|
EXTRA_DIST += \
|
|
|
|
doc/rofi-theme.5.markdown \
|
2020-02-02 17:21:21 +01:00
|
|
|
doc/rofi-script.5.markdown \
|
2018-03-29 12:47:56 +02:00
|
|
|
doc/rofi-theme-selector.1.markdown \
|
|
|
|
doc/rofi.1.markdown
|
|
|
|
|
|
|
|
|
2014-03-18 08:40:23 +01:00
|
|
|
##
|
|
|
|
# Readme.md
|
|
|
|
##
|
2014-03-20 08:51:54 +01:00
|
|
|
markdown_SC_FILES=\
|
2016-02-16 11:12:58 +01:00
|
|
|
README.md
|
2014-03-18 08:40:23 +01:00
|
|
|
|
2014-03-20 08:51:54 +01:00
|
|
|
# want the html to show up in release.
|
|
|
|
md_verbose = $(md_verbose_@AM_V@)
|
|
|
|
md_verbose_ = $(md_verbose_@AM_DEFAULT_V@)
|
|
|
|
md_verbose_0 = @echo " MD" $@;
|
|
|
|
|
|
|
|
markdown_FILES=\
|
2016-02-16 11:12:58 +01:00
|
|
|
README.html
|
2014-03-20 08:51:54 +01:00
|
|
|
|
2014-04-15 17:16:55 +02:00
|
|
|
README.html: README.md
|
2014-03-20 08:51:54 +01:00
|
|
|
$(md_verbose) markdown $< > $@
|
2016-10-27 15:28:11 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
# Themes
|
|
|
|
###
|
|
|
|
themedir=$(pkgdatadir)/themes/
|
|
|
|
theme_DATA=\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/Adapta-Nokto.rasi\
|
|
|
|
themes/Arc.rasi\
|
2018-02-25 15:18:37 +01:00
|
|
|
themes/Arc-Dark.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/DarkBlue.rasi\
|
2017-06-19 09:29:51 +02:00
|
|
|
themes/Pop-Dark.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/Indego.rasi\
|
|
|
|
themes/Monokai.rasi\
|
|
|
|
themes/Paper.rasi\
|
|
|
|
themes/android_notification.rasi\
|
2017-01-19 18:58:07 +01:00
|
|
|
themes/arthur.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/blue.rasi\
|
|
|
|
themes/c64.rasi\
|
2017-06-05 20:31:32 +02:00
|
|
|
themes/dmenu.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/glue_pro_blue.rasi\
|
2018-02-25 15:18:37 +01:00
|
|
|
themes/gruvbox-common.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/gruvbox-dark-hard.rasi\
|
|
|
|
themes/gruvbox-dark-soft.rasi\
|
|
|
|
themes/gruvbox-dark.rasi\
|
|
|
|
themes/gruvbox-light-hard.rasi\
|
|
|
|
themes/gruvbox-light-soft.rasi\
|
|
|
|
themes/gruvbox-light.rasi\
|
|
|
|
themes/lb.rasi\
|
2017-01-19 18:58:07 +01:00
|
|
|
themes/paper-float.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/purple.rasi\
|
2017-01-19 18:58:07 +01:00
|
|
|
themes/sidebar.rasi\
|
2017-01-19 09:19:14 +01:00
|
|
|
themes/solarized.rasi\
|
2019-05-14 11:35:30 +02:00
|
|
|
themes/solarized_alternate.rasi\
|
|
|
|
themes/fancy.rasi
|
2016-10-27 15:28:11 +02:00
|
|
|
|
2015-12-08 08:39:18 +01:00
|
|
|
##
|
2014-03-17 18:00:09 +01:00
|
|
|
# Extra DIST
|
|
|
|
##
|
2017-05-28 02:18:09 +02:00
|
|
|
EXTRA_DIST+=\
|
2016-02-16 11:12:58 +01:00
|
|
|
$(markdown_FILES)\
|
|
|
|
$(markdown_SC_FILES)\
|
|
|
|
Examples/i3_switch_workspaces.sh\
|
2018-11-01 09:32:00 +01:00
|
|
|
Examples/i3_empty_workspace.sh\
|
|
|
|
Examples/test_script_mode.sh\
|
|
|
|
Examples/rofi-file-browser.sh\
|
2016-02-16 11:12:58 +01:00
|
|
|
INSTALL.md\
|
2015-01-25 10:11:44 +01:00
|
|
|
AUTHORS\
|
2016-01-07 13:38:53 +01:00
|
|
|
doc/rofi.doxy.in\
|
2016-03-12 14:00:19 +01:00
|
|
|
script/get_git_rev.sh\
|
2016-10-27 15:28:11 +02:00
|
|
|
$(theme_DATA)\
|
2017-10-31 18:00:24 +01:00
|
|
|
doc/default_theme.rasi\
|
2015-01-25 10:11:44 +01:00
|
|
|
Changelog
|
2014-05-24 10:18:36 +02:00
|
|
|
##
|
|
|
|
# Indent
|
|
|
|
##
|
|
|
|
|
|
|
|
|
2020-02-02 17:21:21 +01:00
|
|
|
update-manpage: $(top_srcdir)/doc/rofi-theme-selector.1.markdown $(top_srcdir)/doc/rofi.1.markdown $(top_srcdir)/doc/rofi-theme.5.markdown $(top_srcdir)/doc/rofi-script.5.markdown
|
|
|
|
go-md2man -in $(top_srcdir)/doc/rofi.1.markdown -out $(top_srcdir)/doc/rofi.1
|
|
|
|
go-md2man -in $(top_srcdir)/doc/rofi-theme-selector.1.markdown -out $(top_srcdir)/doc/rofi-theme-selector.1
|
|
|
|
go-md2man -in $(top_srcdir)/doc/rofi-theme.5.markdown -out $(top_srcdir)/doc/rofi-theme.5
|
|
|
|
go-md2man -in $(top_srcdir)/doc/rofi-script.5.markdown -out $(top_srcdir)/doc/rofi-script.5
|
2014-08-29 16:24:39 +02:00
|
|
|
|
2014-11-26 19:40:49 +01:00
|
|
|
##
|
|
|
|
# Rofi test program
|
|
|
|
##
|
2017-05-28 02:18:09 +02:00
|
|
|
check_PROGRAMS+=\
|
2016-10-20 19:34:03 +02:00
|
|
|
history_test\
|
|
|
|
textbox_test\
|
|
|
|
helper_test\
|
|
|
|
helper_expand\
|
|
|
|
helper_pidfile\
|
|
|
|
helper_config_cmdline_parser\
|
2016-10-21 18:48:01 +02:00
|
|
|
widget_test\
|
2016-10-24 17:48:04 +02:00
|
|
|
box_test\
|
2017-04-30 18:34:37 +02:00
|
|
|
scrollbar_test
|
|
|
|
|
2017-04-30 20:03:31 +02:00
|
|
|
if USE_CHECK
|
2017-09-29 18:44:21 +02:00
|
|
|
check_PROGRAMS+=mode_test theme_parser_test helper_tokenize
|
2017-04-30 18:34:37 +02:00
|
|
|
endif
|
|
|
|
|
2016-10-20 19:34:03 +02:00
|
|
|
|
2014-11-26 19:40:49 +01:00
|
|
|
|
2016-03-21 20:27:16 +01:00
|
|
|
history_test_CFLAGS=\
|
2016-02-21 12:57:30 +01:00
|
|
|
$(AM_CFLAGS)\
|
|
|
|
$(glib_CFLAGS)\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(NKUTILS_CFLAGS)\
|
2016-03-01 18:11:55 +01:00
|
|
|
$(libsn_CFLAGS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(cairo_CFLAGS)\
|
2017-04-17 18:18:07 +02:00
|
|
|
-DTHEME_DIR=\"$(themedir)\"\
|
2017-04-25 11:44:13 +02:00
|
|
|
-DPLUGIN_PATH=\"${libdir}/rofi\"\
|
2016-02-21 12:57:30 +01:00
|
|
|
-I$(top_srcdir)/include/\
|
|
|
|
-I$(top_srcdir)/config/\
|
|
|
|
-I$(top_builddir)/
|
|
|
|
|
2016-03-21 20:27:16 +01:00
|
|
|
history_test_LDADD=\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(glib_LIBS)\
|
|
|
|
$(NKUTILS_LIBS)
|
2016-02-21 12:57:30 +01:00
|
|
|
|
2014-11-26 19:40:49 +01:00
|
|
|
|
2016-03-21 20:27:16 +01:00
|
|
|
history_test_SOURCES=\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/history.c\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
2016-01-07 19:47:37 +01:00
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
2016-01-07 16:01:56 +01:00
|
|
|
include/settings.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
include/history.h\
|
2014-11-26 19:40:49 +01:00
|
|
|
test/history-test.c
|
|
|
|
|
2016-02-21 12:57:30 +01:00
|
|
|
textbox_test_CFLAGS=\
|
|
|
|
$(AM_CFLAGS)\
|
|
|
|
$(glib_CFLAGS)\
|
|
|
|
$(pango_CFLAGS)\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(NKUTILS_CFLAGS)\
|
2016-02-21 16:40:29 +01:00
|
|
|
$(GW_XCB_CFLAGS)\
|
2016-02-21 12:57:30 +01:00
|
|
|
$(cairo_CFLAGS)\
|
2016-03-01 18:11:55 +01:00
|
|
|
$(libsn_CFLAGS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_CFLAGS)\
|
2020-02-14 14:27:03 +01:00
|
|
|
$(libjpeg_CFLAGS)\
|
2017-04-25 11:44:13 +02:00
|
|
|
-DPLUGIN_PATH=\"${libdir}/rofi\"\
|
2017-04-17 18:18:07 +02:00
|
|
|
-DTHEME_DIR=\"$(themedir)\"\
|
2016-02-21 12:57:30 +01:00
|
|
|
-I$(top_srcdir)/include/\
|
2017-05-04 21:41:38 +02:00
|
|
|
-I$(top_builddir)/lexer/\
|
2017-05-04 21:49:24 +02:00
|
|
|
-I$(top_srcdir)/lexer/\
|
2016-02-21 12:57:30 +01:00
|
|
|
-I$(top_srcdir)/config/\
|
|
|
|
-I$(top_builddir)/
|
|
|
|
|
|
|
|
textbox_test_LDADD=\
|
|
|
|
$(glib_LIBS)\
|
|
|
|
$(pango_LIBS)\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(NKUTILS_LIBS)\
|
2016-02-21 16:40:29 +01:00
|
|
|
$(GW_XCB_LIBS)\
|
2016-03-01 18:11:55 +01:00
|
|
|
$(cairo_LIBS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_LIBS)\
|
2016-03-01 18:11:55 +01:00
|
|
|
$(libsn_LIBS)
|
2016-02-21 12:57:30 +01:00
|
|
|
|
2016-10-20 19:34:03 +02:00
|
|
|
helper_pidfile_CFLAGS=$(textbox_test_CFLAGS)
|
|
|
|
helper_pidfile_LDADD=$(textbox_test_LDADD)
|
|
|
|
helper_pidfile_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
|
|
|
source/helper.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2016-10-20 19:34:03 +02:00
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2016-10-20 19:34:03 +02:00
|
|
|
include/xrmoptions.h\
|
|
|
|
source/xrmoptions.c\
|
|
|
|
test/helper-pidfile.c
|
2017-01-08 21:36:06 +01:00
|
|
|
|
2016-06-01 07:57:04 +02:00
|
|
|
widget_test_LDADD=$(textbox_test_LDADD)
|
|
|
|
widget_test_CFLAGS=$(textbox_test_CFLAGS)
|
|
|
|
widget_test_SOURCES=\
|
2016-10-08 18:57:59 +02:00
|
|
|
source/widgets/widget.c\
|
2017-01-01 16:32:01 +01:00
|
|
|
source/widgets/textbox.c\
|
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2017-01-01 16:32:01 +01:00
|
|
|
source/helper.c\
|
|
|
|
config/config.c\
|
|
|
|
lexer/theme-parser.y\
|
|
|
|
lexer/theme-lexer.l\
|
2016-06-01 07:57:04 +02:00
|
|
|
test/widget-test.c
|
2016-10-21 18:48:01 +02:00
|
|
|
|
|
|
|
box_test_LDADD=$(textbox_test_LDADD)
|
|
|
|
box_test_CFLAGS=$(textbox_test_CFLAGS)
|
|
|
|
box_test_SOURCES=\
|
|
|
|
source/widgets/widget.c\
|
|
|
|
source/widgets/box.c\
|
2016-12-16 09:28:13 +01:00
|
|
|
lexer/theme-parser.y\
|
|
|
|
lexer/theme-lexer.l\
|
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2017-01-01 17:03:42 +01:00
|
|
|
include/theme.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
include/css-colors.h\
|
2016-10-21 18:48:01 +02:00
|
|
|
test/box-test.c
|
2016-10-24 17:48:04 +02:00
|
|
|
|
|
|
|
scrollbar_test_LDADD=$(textbox_test_LDADD)
|
|
|
|
scrollbar_test_CFLAGS=$(textbox_test_CFLAGS)
|
|
|
|
scrollbar_test_SOURCES=\
|
|
|
|
source/widgets/widget.c\
|
|
|
|
source/widgets/scrollbar.c\
|
2016-12-16 09:28:13 +01:00
|
|
|
lexer/theme-parser.y\
|
|
|
|
lexer/theme-lexer.l\
|
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2017-01-01 17:03:42 +01:00
|
|
|
include/theme.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
include/css-colors.h\
|
2016-10-24 17:48:04 +02:00
|
|
|
test/scrollbar-test.c
|
|
|
|
|
2014-11-26 19:40:49 +01:00
|
|
|
textbox_test_SOURCES=\
|
2016-10-08 18:57:59 +02:00
|
|
|
source/widgets/widget.c\
|
|
|
|
source/widgets/textbox.c\
|
2016-12-16 09:28:13 +01:00
|
|
|
lexer/theme-parser.y\
|
|
|
|
lexer/theme-lexer.l\
|
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2017-01-01 16:32:01 +01:00
|
|
|
source/helper.c\
|
2016-02-16 11:12:58 +01:00
|
|
|
config/config.c\
|
2015-04-30 21:47:32 +02:00
|
|
|
include/keyb.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
include/rofi.h\
|
2016-01-07 19:47:37 +01:00
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
2016-01-07 16:01:56 +01:00
|
|
|
include/settings.h\
|
2016-10-08 18:57:59 +02:00
|
|
|
include/widgets/widget.h\
|
2016-10-09 10:13:15 +02:00
|
|
|
include/widgets/widget-internal.h\
|
2016-10-08 18:57:59 +02:00
|
|
|
include/widgets/textbox.h\
|
2015-04-30 22:42:04 +02:00
|
|
|
include/xrmoptions.h\
|
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2014-11-26 19:40:49 +01:00
|
|
|
test/textbox-test.c
|
|
|
|
|
2017-04-30 20:03:31 +02:00
|
|
|
if USE_CHECK
|
2017-04-30 18:34:37 +02:00
|
|
|
theme_parser_test_CFLAGS=${helper_test_CFLAGS} $(check_CFLAGS)
|
|
|
|
theme_parser_test_LDADD=${helper_test_LDADD} $(check_LIBS)
|
2017-04-04 08:56:19 +02:00
|
|
|
theme_parser_test_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
|
|
|
source/helper.c\
|
|
|
|
include/helper.h\
|
|
|
|
include/helper-theme.h\
|
|
|
|
include/theme.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
include/css-colors.h\
|
2017-04-04 08:56:19 +02:00
|
|
|
include/xrmoptions.h\
|
|
|
|
source/xrmoptions.c\
|
|
|
|
lexer/theme-lexer.c\
|
|
|
|
lexer/theme-parser.c\
|
|
|
|
lexer/theme-parser.h\
|
|
|
|
source/theme.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-05-15 22:46:33 +02:00
|
|
|
source/css-colors.c\
|
2017-04-04 08:56:19 +02:00
|
|
|
test/theme-parser-test.c
|
2017-04-30 18:34:37 +02:00
|
|
|
endif
|
2017-04-04 08:56:19 +02:00
|
|
|
|
2014-11-26 19:40:49 +01:00
|
|
|
helper_test_SOURCES=\
|
2016-02-16 11:12:58 +01:00
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
2016-01-07 19:47:37 +01:00
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
source/helper.c\
|
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2015-02-17 15:19:26 +01:00
|
|
|
include/xrmoptions.h\
|
2015-02-17 10:31:59 +01:00
|
|
|
source/xrmoptions.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2016-02-16 11:12:58 +01:00
|
|
|
test/helper-test.c
|
2014-11-26 19:40:49 +01:00
|
|
|
|
2017-04-04 08:56:19 +02:00
|
|
|
|
2016-02-21 12:57:30 +01:00
|
|
|
helper_test_CFLAGS=\
|
|
|
|
$(AM_CFLAGS)\
|
|
|
|
$(glib_CFLAGS)\
|
|
|
|
$(pango_CFLAGS)\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(NKUTILS_CFLAGS)\
|
2016-02-28 01:21:22 +01:00
|
|
|
$(GW_XCB_CFLAGS)\
|
2016-02-21 12:57:30 +01:00
|
|
|
$(cairo_CFLAGS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_CFLAGS)\
|
2016-03-01 18:11:55 +01:00
|
|
|
$(libsn_CFLAGS)\
|
2017-04-25 11:44:13 +02:00
|
|
|
-DPLUGIN_PATH=\"${libdir}/rofi\"\
|
2017-04-17 18:18:07 +02:00
|
|
|
-DTHEME_DIR=\"$(themedir)\"\
|
2016-02-21 12:57:30 +01:00
|
|
|
-I$(top_srcdir)/include/\
|
2017-05-04 21:41:38 +02:00
|
|
|
-I$(top_builddir)/lexer/\
|
2017-05-04 21:49:24 +02:00
|
|
|
-I$(top_srcdir)/lexer/\
|
2016-02-21 12:57:30 +01:00
|
|
|
-I$(top_srcdir)/config/\
|
|
|
|
-I$(top_builddir)/
|
|
|
|
|
|
|
|
helper_test_LDADD=\
|
|
|
|
$(glib_LIBS)\
|
|
|
|
$(pango_LIBS)\
|
2017-06-01 12:00:51 +02:00
|
|
|
$(NKUTILS_LIBS)\
|
2016-02-28 01:21:22 +01:00
|
|
|
$(GW_XCB_LIBS)\
|
2016-03-04 17:03:24 +01:00
|
|
|
$(libsn_LIBS)\
|
2017-04-12 17:58:32 +02:00
|
|
|
$(librsvg_LIBS)\
|
2016-02-21 12:57:30 +01:00
|
|
|
$(cairo_LIBS)
|
|
|
|
|
2017-04-04 08:56:19 +02:00
|
|
|
|
2016-03-21 17:16:45 +01:00
|
|
|
helper_expand_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
|
|
|
source/helper.c\
|
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2016-03-21 17:16:45 +01:00
|
|
|
include/xrmoptions.h\
|
|
|
|
source/xrmoptions.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2016-03-21 17:16:45 +01:00
|
|
|
test/helper-expand.c
|
|
|
|
|
|
|
|
helper_expand_CFLAGS=${helper_test_CFLAGS}
|
|
|
|
|
|
|
|
helper_expand_LDADD=${helper_test_LDADD}
|
|
|
|
|
2016-03-22 10:43:42 +01:00
|
|
|
helper_config_cmdline_parser_CFLAGS=${helper_test_CFLAGS}
|
|
|
|
|
|
|
|
helper_config_cmdline_parser_LDADD=${helper_test_LDADD}
|
|
|
|
helper_config_cmdline_parser_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
|
|
|
source/helper.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2016-03-22 10:43:42 +01:00
|
|
|
include/helper.h\
|
2017-02-17 14:06:31 +01:00
|
|
|
include/helper-theme.h\
|
2016-03-22 10:43:42 +01:00
|
|
|
include/xrmoptions.h\
|
|
|
|
source/xrmoptions.c\
|
|
|
|
test/helper-config-cmdline-parser.c
|
|
|
|
|
2017-04-28 09:43:12 +02:00
|
|
|
|
2017-04-30 20:03:31 +02:00
|
|
|
if USE_CHECK
|
2017-04-29 17:51:38 +02:00
|
|
|
mode_test_CFLAGS=$(textbox_test_CFLAGS) $(check_CFLAGS)
|
|
|
|
mode_test_LDADD=$(textbox_test_LDADD) $(check_LIBS)
|
2017-04-28 09:43:12 +02:00
|
|
|
mode_test_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
test/mode-test.c\
|
|
|
|
source/dialogs/help-keys.c\
|
|
|
|
source/helper.c\
|
|
|
|
source/mode.c\
|
2017-06-20 21:02:13 +02:00
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
2017-04-28 09:43:12 +02:00
|
|
|
source/xrmoptions.c\
|
|
|
|
source/keyb.c\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h
|
2017-09-29 18:44:21 +02:00
|
|
|
helper_tokenize_CFLAGS=$(textbox_test_CFLAGS) $(check_CFLAGS)
|
|
|
|
helper_tokenize_LDADD=$(textbox_test_LDADD) $(check_LIBS)
|
|
|
|
helper_tokenize_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
include/mode.h\
|
|
|
|
include/mode-private.h\
|
|
|
|
source/helper.c\
|
|
|
|
source/rofi-types.c\
|
|
|
|
include/rofi-types.h\
|
|
|
|
include/helper.h\
|
|
|
|
include/helper-theme.h\
|
|
|
|
include/xrmoptions.h\
|
|
|
|
source/xrmoptions.c\
|
|
|
|
test/helper-tokenize.c
|
|
|
|
|
2017-04-30 18:34:37 +02:00
|
|
|
endif
|
2017-04-28 09:43:12 +02:00
|
|
|
|
2017-05-28 02:18:09 +02:00
|
|
|
TESTS+=\
|
2016-03-21 20:27:16 +01:00
|
|
|
history_test\
|
2016-03-21 17:16:45 +01:00
|
|
|
helper_test\
|
2016-03-22 10:43:42 +01:00
|
|
|
helper_expand\
|
2016-10-20 19:34:03 +02:00
|
|
|
helper_pidfile\
|
2016-06-01 07:57:04 +02:00
|
|
|
helper_config_cmdline_parser\
|
2016-10-20 19:34:03 +02:00
|
|
|
textbox_test\
|
2016-10-21 18:48:01 +02:00
|
|
|
widget_test\
|
2016-10-24 17:48:04 +02:00
|
|
|
box_test\
|
2017-04-30 18:34:37 +02:00
|
|
|
scrollbar_test
|
|
|
|
|
2017-04-30 20:03:31 +02:00
|
|
|
if USE_CHECK
|
2017-04-30 18:34:37 +02:00
|
|
|
TESTS+=theme_parser_test\
|
2017-09-29 18:44:21 +02:00
|
|
|
helper_tokenize\
|
2017-04-28 09:43:12 +02:00
|
|
|
mode_test
|
2017-04-30 18:34:37 +02:00
|
|
|
endif
|
2015-03-03 22:11:17 +01:00
|
|
|
|
|
|
|
.PHONY: test-x
|
2017-01-08 21:36:06 +01:00
|
|
|
test-x: $(bin_PROGRAMS)
|
2017-05-28 00:24:52 +02:00
|
|
|
MESON_SOURCE_ROOT="$(top_srcdir)" \
|
|
|
|
MESON_BUILD_ROOT="$(top_builddir)" \
|
|
|
|
$(top_srcdir)/test/run_all_tests.sh
|
2015-01-16 08:34:11 +01:00
|
|
|
|
|
|
|
|
2015-07-28 22:14:21 +02:00
|
|
|
.PHONY: indent
|
2017-01-08 21:36:06 +01:00
|
|
|
indent: $(SOURCES)
|
2016-02-16 11:12:58 +01:00
|
|
|
uncrustify -c $(top_srcdir)/data/uncrustify.cfg --replace $^
|
2015-07-28 22:14:21 +02:00
|
|
|
|
2015-01-16 08:34:11 +01:00
|
|
|
.PHONY: cppcheck
|
|
|
|
|
2016-02-16 11:12:58 +01:00
|
|
|
cppcheck: $(rofi_SOURCES)
|
2016-03-05 11:08:32 +01:00
|
|
|
cppcheck --std=c99 --platform=unix64 --enable=all -Uerror_dialog --inconclusive -I $(top_srcdir)/include/ $^
|
2015-01-17 18:27:41 +01:00
|
|
|
|
|
|
|
.PHONY: ohcount
|
|
|
|
|
2016-02-16 11:12:58 +01:00
|
|
|
ohcount: $(rofi_SOURCES)
|
|
|
|
ohcount -i $(top_srcdir)/source/ $(top_srcdir)/include/
|
2016-01-05 19:49:13 +01:00
|
|
|
|
2016-02-16 11:12:58 +01:00
|
|
|
doxy: doc/rofi.doxy $(rofi_SOURCES)
|
|
|
|
doxygen $(top_builddir)/doc/rofi.doxy
|
2016-01-07 13:38:53 +01:00
|
|
|
|
2016-03-12 14:00:19 +01:00
|
|
|
clean-local:
|
|
|
|
-rm $(top_builddir)/gitconfig.h
|
2017-10-31 18:00:24 +01:00
|
|
|
-rm $(top_builddir)/resources/resources.h
|
|
|
|
-rm $(top_builddir)/resources/resources.c
|
2016-03-12 14:00:19 +01:00
|
|
|
|
|
|
|
$(top_builddir)/gitconfig.h: .FORCE
|
|
|
|
$(top_srcdir)/script/get_git_rev.sh $(top_srcdir) $(top_builddir)/gitconfig.h
|
|
|
|
|
|
|
|
$(rofi_SOURCES): $(top_builddir)/gitconfig.h
|
|
|
|
|
2016-10-18 13:49:24 +02:00
|
|
|
.PHONY: coverage
|
|
|
|
coverage: coverage/index.html
|
|
|
|
|
2016-10-18 22:54:38 +02:00
|
|
|
.PHONY: coverage-cli
|
|
|
|
coverage-cli: coverage.info
|
|
|
|
lcov -l $^
|
2016-10-18 13:49:24 +02:00
|
|
|
coverage.info: $(top_builddir)/test/*.gcda $(top_builddir)/source/*.gcda $(top_builddir)/source/**/*.gcda
|
2016-10-18 22:54:38 +02:00
|
|
|
lcov --capture --directory $(top_builddir) --output-file coverage.info
|
|
|
|
lcov -r $@ /usr/include/\* -o $@
|
2016-10-18 13:49:24 +02:00
|
|
|
|
|
|
|
coverage/index.html: coverage.info
|
|
|
|
genhtml $^ --output-directory coverage/
|
|
|
|
|
2016-10-18 22:54:38 +02:00
|
|
|
.PHONY: coverage-clean
|
|
|
|
coverage-clean:
|
|
|
|
-rm -r coverage.info coverage/
|
2016-10-20 09:41:32 +02:00
|
|
|
-find $(top_builddir) -name '*.gcda' | xargs rm
|
2016-10-18 22:54:38 +02:00
|
|
|
|
2016-03-12 14:00:19 +01:00
|
|
|
.PHONY: .FORCE
|
|
|
|
.FORCE:
|
2017-05-04 22:26:03 +02:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
doc/meson.build \
|
2017-05-28 02:18:09 +02:00
|
|
|
subprojects/libnkutils/meson.build \
|
2017-09-27 11:21:33 +02:00
|
|
|
subprojects/libnkutils/meson_options.txt \
|
2017-05-04 22:26:03 +02:00
|
|
|
subprojects/libgwater/xcb/meson.build \
|
2017-05-15 13:17:06 +02:00
|
|
|
meson_options.txt \
|
2017-05-04 22:26:03 +02:00
|
|
|
meson.build
|