1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/Makefile.am

229 lines
5.9 KiB
Text
Raw Normal View History

2015-02-27 10:34:57 -05:00
# Specify automake version.
2015-03-01 14:17:30 -05:00
AUTOMAKE_OPTIONS = 1.11.3
2014-03-18 03:59:42 -04:00
##
# Rofi the program
##
2014-03-17 13:00:09 -04:00
bin_PROGRAMS=rofi
2015-08-03 14:40:01 -04:00
dist_bin_SCRIPTS=script/rofi-sensible-terminal
2014-03-17 13:00:09 -04:00
LIBS=\
2015-12-01 16:35:05 -05:00
@glib_LIBS@\
2014-03-17 13:00:09 -04:00
@x11_LIBS@\
2014-08-02 14:02:37 -04:00
@xinerama_LIBS@\
2015-09-13 11:29:50 -04:00
@libsn_LIBS@\
2015-09-26 14:34:34 -04:00
@pango_LIBS@\
@cairo_LIBS@
2014-03-17 13:00:09 -04:00
AM_CFLAGS=\
2015-02-01 09:12:29 -05:00
@EXTRA_CFLAGS@\
2015-12-01 16:35:05 -05:00
@glib_CFLAGS@\
2014-03-17 13:00:09 -04:00
@x11_CFLAGS@\
@xinerama_CFLAGS@\
2014-08-02 14:02:37 -04:00
@pango_CFLAGS@\
2015-09-13 11:29:50 -04:00
@libsn_CFLAGS@\
2015-09-26 14:34:34 -04:00
@cairo_CFLAGS@\
-DMANPAGE_PATH="\"$(mandir)/\""\
2014-03-17 13:00:09 -04:00
-I$(top_srcdir)/include/\
-I$(top_srcdir)/config/\
-I$(top_builddir)/\
-Werror=missing-prototypes
2014-03-17 13:00:09 -04:00
rofi_SOURCES=\
source/rofi.c\
2015-09-19 15:32:03 -04:00
source/keyb.c\
config/config.c\
source/helper.c\
2014-03-17 13:00:09 -04:00
source/textbox.c\
source/timings.c\
2015-09-19 15:32:03 -04:00
source/history.c\
2015-09-03 12:23:00 -04:00
source/scrollbar.c\
2015-09-19 15:32:03 -04:00
source/i3-support.c\
2014-03-17 13:00:09 -04:00
source/xrmoptions.c\
source/x11-helper.c\
2015-03-25 03:36:19 -04:00
source/dialogs/run.c\
source/dialogs/ssh.c\
2015-11-03 02:31:38 -05:00
source/dialogs/drun.c\
2015-09-19 15:32:03 -04:00
source/dialogs/dmenu.c\
source/dialogs/combi.c\
2015-09-19 15:32:03 -04:00
source/dialogs/window.c\
source/dialogs/script.c\
2014-03-17 13:00:09 -04:00
include/rofi.h\
2015-09-19 15:32:03 -04:00
include/keyb.h\
include/helper.h\
include/timings.h\
include/history.h\
include/textbox.h\
2015-09-03 12:23:00 -04:00
include/scrollbar.h\
2015-09-19 15:32:03 -04:00
include/xrmoptions.h\
include/i3-support.h\
include/x11-helper.h\
2015-09-19 15:32:03 -04:00
include/dialogs/ssh.h\
2015-03-25 03:36:19 -04:00
include/dialogs/run.h\
2015-11-03 02:31:38 -05:00
include/dialogs/drun.h\
2015-09-19 15:32:03 -04:00
include/dialogs/dmenu.h\
include/dialogs/combi.h\
2015-09-19 15:32:03 -04:00
include/dialogs/script.h\
2015-03-25 03:36:19 -04:00
include/dialogs/window.h\
2015-09-19 15:32:03 -04:00
include/dialogs/dialogs.h
2014-03-17 13:00:09 -04:00
##
# Manpage
##
man1_MANS=\
doc/rofi.1\
doc/rofi-sensible-terminal.1
2014-03-17 13:00:09 -04:00
2014-03-18 03:40:23 -04:00
##
# Readme.md
##
2014-03-20 03:51:54 -04:00
markdown_SC_FILES=\
2014-03-18 03:40:23 -04:00
README.md
2014-03-20 03:51:54 -04: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=\
README.html
README.html: README.md
2014-03-20 03:51:54 -04:00
$(md_verbose) markdown $< > $@
2014-03-17 13:00:09 -04:00
##
# config directory
##
2015-01-11 07:25:19 -05:00
${top_builddir}/config/config.c: ${top_srcdir}/config/config.def.c
cp ${top_srcdir}/config/config.def.c $@
2015-12-08 02:39:18 -05:00
##
2014-03-17 13:00:09 -04:00
# Extra DIST
##
EXTRA_DIST=\
2014-03-18 03:40:23 -04:00
$(man1_MANS)\
2014-04-24 02:03:38 -04:00
$(markdown_FILES)\
2014-07-21 10:41:31 -04:00
$(markdown_SC_FILES)\
Examples/i3_switch_workspaces.sh\
2015-01-11 07:25:19 -05:00
${top_srcdir}/config/config.def.c\
INSTALL.md\
AUTHORS\
Changelog
##
# Indent
##
update-manpage: ${top_srcdir}/doc/rofi-manpage.markdown
2015-06-02 13:01:25 -04:00
ronn --roff --pipe $^ > ${top_srcdir}/doc/rofi.1
2014-08-29 10:24:39 -04:00
##
# Rofi test program
##
noinst_PROGRAMS=rofi_test textbox_test helper_test
rofi_test_SOURCES=\
source/history.c\
config/config.c\
include/rofi.h\
include/history.h\
test/history-test.c
textbox_test_SOURCES=\
source/textbox.c\
config/config.c\
source/keyb.c\
source/x11-helper.c\
2015-04-30 16:42:04 -04:00
source/xrmoptions.c\
source/helper.c\
include/keyb.h\
include/rofi.h\
include/textbox.h\
2015-04-30 16:42:04 -04:00
include/x11-helper.h\
include/xrmoptions.h\
include/helper.h\
test/textbox-test.c
helper_test_SOURCES=\
config/config.c\
include/rofi.h\
source/helper.c\
include/helper.h\
2015-02-17 09:19:26 -05:00
include/xrmoptions.h\
source/xrmoptions.c\
test/helper-test.c
.PHONY: test
2015-12-08 02:39:18 -05:00
test: ${bin_PROGRAMS} ${noinst_PROGRAMS}
./rofi_test
./helper_test
.PHONY: test-x
test-x: ${bin_PROGRAMS}
2015-12-08 02:39:18 -05:00
echo "Test 1"
$(top_srcdir)/test/run_test.sh 123 $(top_builddir)/textbox_test $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 2"
$(top_srcdir)/test/run_test.sh 200 $(top_srcdir)/test/run_errormsg_test.sh $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 3"
$(top_srcdir)/test/run_test.sh 201 $(top_srcdir)/test/run_switchdialog_test.sh $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 4"
$(top_srcdir)/test/run_test.sh 202 $(top_srcdir)/test/run_dmenu_test.sh $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 5"
$(top_srcdir)/test/run_test.sh 203 $(top_srcdir)/test/run_dmenu_custom_test.sh $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 6"
$(top_srcdir)/test/run_test.sh 204 $(top_srcdir)/test/run_run_test.sh $(top_builddir)
2015-09-04 14:46:13 -04:00
echo "Test 7"
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)
echo "Issue 256"
2015-12-08 02:39:18 -05:00
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
2015-11-20 05:15:34 -05:00
echo "Issue 275"
$(top_srcdir)/test/run_test.sh 207 $(top_srcdir)/test/run_issue_275.sh $(top_builddir)
2015-12-02 03:46:13 -05:00
echo "Crash empty list"
$(top_srcdir)/test/run_test.sh 208 $(top_srcdir)/test/run_dmenu_empty.sh $(top_builddir)
2015-12-04 16:13:30 -05:00
echo "Test multiple select"
$(top_srcdir)/test/run_test.sh 209 $(top_srcdir)/test/run_dmenu_issue_292.sh $(top_builddir)
2015-12-31 15:55:15 -05:00
echo "Test screenshot"
$(top_srcdir)/test/run_test.sh 210 $(top_srcdir)/test/run_screenshot_test.sh $(top_builddir)
2015-12-31 16:45:36 -05:00
echo "Test daemon"
$(top_srcdir)/test/run_test.sh 211 $(top_srcdir)/test/run_daemon_test.sh $(top_builddir)
2015-12-31 16:45:36 -05:00
echo "Test xr dump"
$(top_srcdir)/test/run_test.sh 212 $(top_srcdir)/test/xr_dump_test.sh $(top_builddir) $(top_srcdir)
2015-12-31 17:14:38 -05:00
echo "Test drun"
$(top_srcdir)/test/run_test.sh 213 $(top_srcdir)/test/run_drun_test.sh $(top_builddir)
2015-12-31 17:27:06 -05:00
echo "Test combi"
$(top_srcdir)/test/run_test.sh 214 $(top_srcdir)/test/run_combi_test.sh $(top_builddir)
2016-01-01 05:31:29 -05:00
echo "Test dmenu regex"
$(top_srcdir)/test/run_test.sh 215 $(top_srcdir)/test/run_regex_test.sh $(top_builddir)
echo "Test dmenu glob"
$(top_srcdir)/test/run_test.sh 216 $(top_srcdir)/test/run_glob_test.sh $(top_builddir)
2016-01-04 12:04:15 -05:00
echo "Test dmenu fuzzy"
$(top_srcdir)/test/run_test.sh 217 $(top_srcdir)/test/run_fuzzy_test.sh $(top_builddir)
2016-01-03 12:13:41 -05:00
echo "Test config dump"
$(top_srcdir)/test/run_test.sh 218 $(top_srcdir)/test/xr_config_test.sh $(top_builddir) $(top_srcdir)
test-x1: ${bin_PROGRAMS}
echo "Test dmenu-normal-window"
$(top_srcdir)/test/run_test.sh 219 $(top_srcdir)/test/run_dmenu_normal_window_test.sh $(top_builddir)
2016-01-04 14:46:34 -05:00
echo "Test window"
$(top_srcdir)/test/run_test.sh 220 $(top_srcdir)/test/run_window_test.sh $(top_builddir) $(top_srcdir)
2015-09-04 14:56:11 -04:00
echo "End tests"
2015-01-16 02:34:11 -05:00
2015-07-28 16:14:21 -04:00
.PHONY: indent
indent: ${rofi_SOURCES} ${top_srcdir}/config/config.def.c ${helper_test_SOURCES} ${textbox_test_SOURCES} ${rofi_test_SOURCES}
uncrustify -c ${top_srcdir}/data/uncrustify.cfg --replace $^
2015-01-16 02:34:11 -05:00
.PHONY: cppcheck
cppcheck: ${rofi_SOURCES}
cppcheck --std=c99 --platform=unix64 --enable=all -Uerror_dialog -I ${top_srcdir}/include/ $^
2015-01-17 12:27:41 -05:00
.PHONY: ohcount
ohcount: ${rofi_SOURCES}
2015-12-08 02:39:18 -05:00
ohcount -i ${top_srcdir}/source/