2015-02-27 10:34:57 -05:00
|
|
|
# Specify automake version.
|
|
|
|
AUTOMAKE_OPTIONS = 1.14.0
|
2014-08-29 07:06:40 -04:00
|
|
|
|
2014-03-18 03:59:42 -04:00
|
|
|
##
|
|
|
|
# Rofi the program
|
|
|
|
##
|
2014-03-17 13:00:09 -04:00
|
|
|
bin_PROGRAMS=rofi
|
|
|
|
|
|
|
|
LIBS=\
|
|
|
|
@xft_LIBS@\
|
|
|
|
@x11_LIBS@\
|
2014-08-02 14:02:37 -04:00
|
|
|
@xinerama_LIBS@\
|
|
|
|
@pango_LIBS@
|
2014-03-17 13:00:09 -04:00
|
|
|
|
|
|
|
AM_CFLAGS=\
|
2015-02-01 09:12:29 -05:00
|
|
|
@EXTRA_CFLAGS@\
|
2014-03-17 13:00:09 -04:00
|
|
|
@xft_CFLAGS@\
|
|
|
|
@x11_CFLAGS@\
|
|
|
|
@xinerama_CFLAGS@\
|
2014-08-02 14:02:37 -04:00
|
|
|
@pango_CFLAGS@\
|
2014-03-17 14:15:42 -04:00
|
|
|
-DMANPAGE_PATH="\"$(mandir)/man1/rofi.1\""\
|
2014-03-17 13:00:09 -04:00
|
|
|
-I$(top_srcdir)/include/\
|
|
|
|
-I$(top_srcdir)/config/\
|
2015-02-18 02:53:38 -05:00
|
|
|
-I$(top_builddir)/\
|
|
|
|
-Werror=missing-prototypes
|
2014-03-17 13:00:09 -04:00
|
|
|
|
|
|
|
rofi_SOURCES=\
|
|
|
|
source/rofi.c\
|
2015-02-12 16:26:28 -05:00
|
|
|
source/i3-support.c\
|
2014-03-17 13:00:09 -04:00
|
|
|
source/textbox.c\
|
|
|
|
source/xrmoptions.c\
|
2014-05-13 04:45:59 -04:00
|
|
|
source/history.c\
|
2015-01-11 07:25:19 -05:00
|
|
|
config/config.c\
|
2014-09-03 07:07:26 -04:00
|
|
|
source/helper.c\
|
2015-02-13 02:26:23 -05:00
|
|
|
source/x11-helper.c\
|
2015-02-12 16:26:28 -05:00
|
|
|
source/dialogs/dmenu-dialog.c\
|
|
|
|
source/dialogs/run-dialog.c\
|
|
|
|
source/dialogs/window-dialog.c\
|
|
|
|
source/dialogs/ssh-dialog.c\
|
|
|
|
source/dialogs/script-dialog.c\
|
2014-03-17 13:00:09 -04:00
|
|
|
include/rofi.h\
|
2015-02-12 16:26:28 -05:00
|
|
|
include/i3-support.h\
|
2014-03-17 13:00:09 -04:00
|
|
|
include/xrmoptions.h\
|
2014-05-13 04:45:59 -04:00
|
|
|
include/history.h\
|
2014-09-03 07:07:26 -04:00
|
|
|
include/textbox.h\
|
2015-02-09 13:35:51 -05:00
|
|
|
include/helper.h\
|
2015-02-12 16:26:28 -05:00
|
|
|
include/x11-helper.h\
|
|
|
|
include/dialogs/run-dialog.h\
|
|
|
|
include/dialogs/window-dialog.h\
|
|
|
|
include/dialogs/ssh-dialog.h\
|
|
|
|
include/dialogs/dmenu-dialog.h\
|
|
|
|
include/dialogs/script-dialog.h
|
2014-03-17 13:00:09 -04:00
|
|
|
|
|
|
|
##
|
|
|
|
# Manpage
|
|
|
|
##
|
|
|
|
man1_MANS=\
|
|
|
|
doc/rofi.1
|
|
|
|
|
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
|
|
|
|
|
2014-04-15 11:16:55 -04:00
|
|
|
README.html: README.md
|
2014-03-20 03:51:54 -04:00
|
|
|
$(md_verbose) markdown $< > $@
|
2014-03-17 13:00:09 -04:00
|
|
|
|
2015-01-11 07:12:43 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
# config directory
|
|
|
|
##
|
2015-01-11 07:25:19 -05:00
|
|
|
${top_builddir}/config/config.c: ${top_srcdir}/config/config.def.c
|
2015-01-11 07:12:43 -05:00
|
|
|
install ${top_srcdir}/config/config.def.c $@
|
|
|
|
|
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)\
|
2014-07-21 15:39:24 -04:00
|
|
|
Examples/i3_switch_workspaces.sh\
|
2014-07-22 03:02:57 -04:00
|
|
|
Examples/brightness_rofi.sh\
|
|
|
|
Examples/domo_rofi_script.sh\
|
2015-01-11 07:25:19 -05:00
|
|
|
${top_srcdir}/config/config.def.c\
|
2015-01-25 04:11:44 -05:00
|
|
|
INSTALL.md\
|
|
|
|
AUTHORS\
|
|
|
|
Changelog
|
2014-05-24 04:18:36 -04:00
|
|
|
|
|
|
|
##
|
|
|
|
# Indent
|
|
|
|
##
|
|
|
|
|
2015-01-11 07:12:43 -05:00
|
|
|
indent: ${rofi_SOURCES} ${top_srcdir}/config/config.def.c
|
2014-05-24 04:18:36 -04:00
|
|
|
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 10:24:39 -04:00
|
|
|
|
2014-11-26 13:40:49 -05: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\
|
2015-02-17 09:19:26 -05:00
|
|
|
include/xrmoptions.h\
|
2015-02-17 04:31:59 -05:00
|
|
|
source/xrmoptions.c\
|
2014-11-26 13:40:49 -05:00
|
|
|
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
|
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}
|
|
|
|
ohcount -i ${top_srcdir}/source/
|