2015-02-27 15:34:57 +00:00
|
|
|
# Specify automake version.
|
2015-03-01 19:17:30 +00:00
|
|
|
AUTOMAKE_OPTIONS = 1.11.3
|
2014-08-29 11:06:40 +00:00
|
|
|
|
2014-03-18 07:59:42 +00:00
|
|
|
##
|
|
|
|
# Rofi the program
|
|
|
|
##
|
2014-03-17 17:00:09 +00:00
|
|
|
bin_PROGRAMS=rofi
|
|
|
|
|
2015-08-03 18:40:01 +00:00
|
|
|
dist_bin_SCRIPTS=script/rofi-sensible-terminal
|
|
|
|
|
2014-03-17 17:00:09 +00:00
|
|
|
LIBS=\
|
|
|
|
@x11_LIBS@\
|
2014-08-02 18:02:37 +00:00
|
|
|
@xinerama_LIBS@\
|
2015-09-13 15:29:50 +00:00
|
|
|
@libsn_LIBS@\
|
2015-09-26 18:34:34 +00:00
|
|
|
@pango_LIBS@\
|
|
|
|
@cairo_LIBS@
|
2014-03-17 17:00:09 +00:00
|
|
|
|
|
|
|
AM_CFLAGS=\
|
2015-02-01 14:12:29 +00:00
|
|
|
@EXTRA_CFLAGS@\
|
2014-03-17 17:00:09 +00:00
|
|
|
@x11_CFLAGS@\
|
|
|
|
@xinerama_CFLAGS@\
|
2014-08-02 18:02:37 +00:00
|
|
|
@pango_CFLAGS@\
|
2015-09-13 15:29:50 +00:00
|
|
|
@libsn_CFLAGS@\
|
2015-09-26 18:34:34 +00:00
|
|
|
@cairo_CFLAGS@\
|
2015-04-05 19:16:27 +00:00
|
|
|
-DMANPAGE_PATH="\"$(mandir)/\""\
|
2014-03-17 17:00:09 +00:00
|
|
|
-I$(top_srcdir)/include/\
|
|
|
|
-I$(top_srcdir)/config/\
|
2015-02-18 07:53:38 +00:00
|
|
|
-I$(top_builddir)/\
|
|
|
|
-Werror=missing-prototypes
|
2014-03-17 17:00:09 +00:00
|
|
|
|
|
|
|
rofi_SOURCES=\
|
|
|
|
source/rofi.c\
|
2015-09-19 19:32:03 +00:00
|
|
|
source/keyb.c\
|
|
|
|
config/config.c\
|
|
|
|
source/helper.c\
|
2014-03-17 17:00:09 +00:00
|
|
|
source/textbox.c\
|
2015-09-19 19:32:03 +00:00
|
|
|
source/history.c\
|
2015-09-03 16:23:00 +00:00
|
|
|
source/scrollbar.c\
|
2015-09-19 19:32:03 +00:00
|
|
|
source/i3-support.c\
|
2014-03-17 17:00:09 +00:00
|
|
|
source/xrmoptions.c\
|
2015-02-13 07:26:23 +00:00
|
|
|
source/x11-helper.c\
|
2015-03-25 07:36:19 +00:00
|
|
|
source/dialogs/run.c\
|
|
|
|
source/dialogs/ssh.c\
|
2015-11-03 07:31:38 +00:00
|
|
|
source/dialogs/drun.c\
|
2015-09-19 19:32:03 +00:00
|
|
|
source/dialogs/dmenu.c\
|
2015-03-30 18:12:22 +00:00
|
|
|
source/dialogs/combi.c\
|
2015-09-19 19:32:03 +00:00
|
|
|
source/dialogs/window.c\
|
|
|
|
source/dialogs/script.c\
|
2014-03-17 17:00:09 +00:00
|
|
|
include/rofi.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/keyb.h\
|
|
|
|
include/helper.h\
|
2014-05-13 08:45:59 +00:00
|
|
|
include/history.h\
|
2014-09-03 11:07:26 +00:00
|
|
|
include/textbox.h\
|
2015-09-03 16:23:00 +00:00
|
|
|
include/scrollbar.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/xrmoptions.h\
|
|
|
|
include/i3-support.h\
|
2015-02-12 21:26:28 +00:00
|
|
|
include/x11-helper.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/dialogs/ssh.h\
|
2015-03-25 07:36:19 +00:00
|
|
|
include/dialogs/run.h\
|
2015-11-03 07:31:38 +00:00
|
|
|
include/dialogs/drun.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/dialogs/dmenu.h\
|
2015-03-30 18:12:22 +00:00
|
|
|
include/dialogs/combi.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/dialogs/script.h\
|
2015-03-25 07:36:19 +00:00
|
|
|
include/dialogs/window.h\
|
2015-09-19 19:32:03 +00:00
|
|
|
include/dialogs/dialogs.h
|
2014-03-17 17:00:09 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Manpage
|
|
|
|
##
|
|
|
|
man1_MANS=\
|
2015-09-15 05:54:48 +00:00
|
|
|
doc/rofi.1\
|
|
|
|
doc/rofi-sensible-terminal.1
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2014-03-18 07:40:23 +00:00
|
|
|
##
|
|
|
|
# Readme.md
|
|
|
|
##
|
2014-03-20 07:51:54 +00:00
|
|
|
markdown_SC_FILES=\
|
2014-03-18 07:40:23 +00:00
|
|
|
README.md
|
|
|
|
|
2014-03-20 07:51:54 +00: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
|
|
|
|
|
2014-04-15 15:16:55 +00:00
|
|
|
README.html: README.md
|
2014-03-20 07:51:54 +00:00
|
|
|
$(md_verbose) markdown $< > $@
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2015-01-11 12:12:43 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# config directory
|
|
|
|
##
|
2015-01-11 12:25:19 +00:00
|
|
|
${top_builddir}/config/config.c: ${top_srcdir}/config/config.def.c
|
2015-07-25 18:06:26 +00:00
|
|
|
cp ${top_srcdir}/config/config.def.c $@
|
2015-01-11 12:12:43 +00:00
|
|
|
|
2014-03-17 17:00:09 +00:00
|
|
|
##
|
|
|
|
# Extra DIST
|
|
|
|
##
|
|
|
|
EXTRA_DIST=\
|
2014-03-18 07:40:23 +00:00
|
|
|
$(man1_MANS)\
|
2014-04-24 06:03:38 +00:00
|
|
|
$(markdown_FILES)\
|
2014-07-21 14:41:31 +00:00
|
|
|
$(markdown_SC_FILES)\
|
2014-07-21 19:39:24 +00:00
|
|
|
Examples/i3_switch_workspaces.sh\
|
2015-01-11 12:25:19 +00:00
|
|
|
${top_srcdir}/config/config.def.c\
|
2015-01-25 09:11:44 +00:00
|
|
|
INSTALL.md\
|
|
|
|
AUTHORS\
|
|
|
|
Changelog
|
2014-05-24 08:18:36 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Indent
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
update-manpage: ${top_srcdir}/doc/rofi-manpage.markdown
|
2015-06-02 17:01:25 +00:00
|
|
|
ronn --roff --pipe $^ > ${top_srcdir}/doc/rofi.1
|
2014-08-29 14:24:39 +00:00
|
|
|
|
2014-11-26 18:40:49 +00: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\
|
2015-04-30 19:47:32 +00:00
|
|
|
source/keyb.c\
|
|
|
|
source/x11-helper.c\
|
2015-04-30 20:42:04 +00:00
|
|
|
source/xrmoptions.c\
|
|
|
|
source/helper.c\
|
2015-04-30 19:47:32 +00:00
|
|
|
include/keyb.h\
|
2014-11-26 18:40:49 +00:00
|
|
|
include/rofi.h\
|
|
|
|
include/textbox.h\
|
2015-04-30 20:42:04 +00:00
|
|
|
include/x11-helper.h\
|
|
|
|
include/xrmoptions.h\
|
|
|
|
include/helper.h\
|
2014-11-26 18:40:49 +00:00
|
|
|
test/textbox-test.c
|
|
|
|
|
|
|
|
helper_test_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
source/helper.c\
|
|
|
|
include/helper.h\
|
2015-02-17 14:19:26 +00:00
|
|
|
include/xrmoptions.h\
|
2015-02-17 09:31:59 +00:00
|
|
|
source/xrmoptions.c\
|
2014-11-26 18:40:49 +00:00
|
|
|
test/helper-test.c
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: ${bin_PROGRAMS}
|
|
|
|
./rofi_test
|
|
|
|
./helper_test
|
2015-03-03 21:11:17 +00:00
|
|
|
|
|
|
|
.PHONY: test-x
|
|
|
|
test-x: ${bin_PROGRAMS}
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 1"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 123 $(top_builddir)/textbox_test $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 2"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 200 $(top_srcdir)/test/run_errormsg_test.sh $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 3"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 201 $(top_srcdir)/test/run_switchdialog_test.sh $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 4"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 202 $(top_srcdir)/test/run_dmenu_test.sh $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 5"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 203 $(top_srcdir)/test/run_dmenu_custom_test.sh $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 6"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 204 $(top_srcdir)/test/run_run_test.sh $(top_builddir)
|
2015-09-04 18:46:13 +00:00
|
|
|
echo "Test 7"
|
2015-10-31 17:04:55 +00:00
|
|
|
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)
|
|
|
|
echo "Issue 256"
|
|
|
|
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
|
2015-09-04 18:56:11 +00:00
|
|
|
echo "End tests"
|
2015-01-16 07:34:11 +00:00
|
|
|
|
|
|
|
|
2015-07-28 20:14:21 +00: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 07:34:11 +00:00
|
|
|
.PHONY: cppcheck
|
|
|
|
|
|
|
|
cppcheck: ${rofi_SOURCES}
|
|
|
|
cppcheck --std=c99 --platform=unix64 --enable=all -Uerror_dialog -I ${top_srcdir}/include/ $^
|
2015-01-17 17:27:41 +00:00
|
|
|
|
|
|
|
.PHONY: ohcount
|
|
|
|
|
|
|
|
ohcount: ${rofi_SOURCES}
|
|
|
|
ohcount -i ${top_srcdir}/source/
|