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
|
|
|
|
|
|
|
|
LIBS=\
|
|
|
|
@xft_LIBS@\
|
|
|
|
@x11_LIBS@\
|
2014-08-02 18:02:37 +00:00
|
|
|
@xinerama_LIBS@\
|
|
|
|
@pango_LIBS@
|
2014-03-17 17:00:09 +00:00
|
|
|
|
|
|
|
AM_CFLAGS=\
|
|
|
|
@xft_CFLAGS@\
|
|
|
|
@x11_CFLAGS@\
|
|
|
|
@xinerama_CFLAGS@\
|
2014-08-02 18:02:37 +00:00
|
|
|
@pango_CFLAGS@\
|
2014-03-17 18:15:42 +00:00
|
|
|
-DMANPAGE_PATH="\"$(mandir)/man1/rofi.1\""\
|
2014-03-17 17:00:09 +00:00
|
|
|
-I$(top_srcdir)/include/\
|
|
|
|
-I$(top_srcdir)/config/\
|
|
|
|
-I$(top_builddir)/
|
|
|
|
|
|
|
|
rofi_SOURCES=\
|
|
|
|
source/rofi.c\
|
|
|
|
source/textbox.c\
|
|
|
|
source/xrmoptions.c\
|
|
|
|
source/dmenu-dialog.c\
|
|
|
|
source/run-dialog.c\
|
|
|
|
source/ssh-dialog.c\
|
2014-07-21 19:39:24 +00:00
|
|
|
source/script-dialog.c\
|
2014-05-13 08:45:59 +00:00
|
|
|
source/history.c\
|
2014-03-17 18:15:42 +00:00
|
|
|
config/config.c\
|
2014-09-03 11:07:26 +00:00
|
|
|
source/helper.c\
|
2014-03-17 17:00:09 +00:00
|
|
|
include/rofi.h\
|
|
|
|
include/run-dialog.h\
|
|
|
|
include/ssh-dialog.h\
|
|
|
|
include/dmenu-dialog.h\
|
2014-07-21 19:39:24 +00:00
|
|
|
include/script-dialog.h\
|
2014-03-17 17:00:09 +00:00
|
|
|
include/xrmoptions.h\
|
2014-05-13 08:45:59 +00:00
|
|
|
include/history.h\
|
2014-09-03 11:07:26 +00:00
|
|
|
include/textbox.h\
|
|
|
|
include/helper.h
|
2014-03-17 17:00:09 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Manpage
|
|
|
|
##
|
|
|
|
man1_MANS=\
|
|
|
|
doc/rofi.1
|
|
|
|
|
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
|
|
|
|
|
|
|
##
|
|
|
|
# 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\
|
2014-07-22 07:02:57 +00:00
|
|
|
Examples/brightness_rofi.sh\
|
|
|
|
Examples/domo_rofi_script.sh\
|
2014-07-21 14:41:31 +00:00
|
|
|
INSTALL.md
|
2014-05-24 08:18:36 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Indent
|
|
|
|
##
|
|
|
|
|
|
|
|
indent: ${rofi_SOURCES}
|
|
|
|
uncrustify -c ${top_srcdir}/data/uncrustify.cfg --replace $^
|
|
|
|
|
|
|
|
update-manpage: ${top_srcdir}/doc/rofi-manpage.markdown
|
|
|
|
md2man-roff $^ > ${top_srcdir}/doc/rofi.1
|
2014-08-29 14:24:39 +00:00
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: rofi
|
|
|
|
make -C test/ test
|
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\
|
|
|
|
include/rofi.h\
|
|
|
|
include/textbox.h\
|
|
|
|
test/textbox-test.c
|
|
|
|
|
|
|
|
helper_test_SOURCES=\
|
|
|
|
config/config.c\
|
|
|
|
include/rofi.h\
|
|
|
|
source/helper.c\
|
|
|
|
include/helper.h\
|
|
|
|
test/helper-test.c
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: ${bin_PROGRAMS}
|
|
|
|
./rofi_test
|
|
|
|
./helper_test
|
|
|
|
$(top_srcdir)/test/run_test.sh 123 $(top_builddir)/textbox_test $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 200 $(top_srcdir)/test/run_errormsg_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 201 $(top_srcdir)/test/run_switchdialog_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 202 $(top_srcdir)/test/run_dmenu_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 203 $(top_srcdir)/test/run_dmenu_custom_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 204 $(top_srcdir)/test/run_run_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|
|
|
|
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir) $(top_srcdir)/doc/example.xresources
|