1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/Makefile.am
2015-02-02 14:49:19 +01:00

150 lines
3.4 KiB
Makefile

##
# Rofi the program
##
bin_PROGRAMS=rofi
LIBS=\
@xft_LIBS@\
@x11_LIBS@\
@xinerama_LIBS@\
@pango_LIBS@
AM_CFLAGS=\
@EXTRA_CFLAGS@\
@xft_CFLAGS@\
@x11_CFLAGS@\
@xinerama_CFLAGS@\
@pango_CFLAGS@\
-DMANPAGE_PATH="\"$(mandir)/man1/rofi.1\""\
-I$(top_srcdir)/include/\
-I$(top_srcdir)/config/\
-I$(top_builddir)/
rofi_SOURCES=\
source/rofi.c\
source/rofi-i3.c\
source/textbox.c\
source/xrmoptions.c\
source/dmenu-dialog.c\
source/run-dialog.c\
source/ssh-dialog.c\
source/script-dialog.c\
source/history.c\
config/config.c\
source/helper.c\
include/rofi.h\
include/rofi-i3.h\
include/run-dialog.h\
include/ssh-dialog.h\
include/dmenu-dialog.h\
include/script-dialog.h\
include/xrmoptions.h\
include/history.h\
include/textbox.h\
include/helper.h
##
# Manpage
##
man1_MANS=\
doc/rofi.1
##
# Readme.md
##
markdown_SC_FILES=\
README.md
# 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
$(md_verbose) markdown $< > $@
##
# config directory
##
${top_builddir}/config/config.c: ${top_srcdir}/config/config.def.c
install ${top_srcdir}/config/config.def.c $@
##
# Extra DIST
##
EXTRA_DIST=\
$(man1_MANS)\
$(markdown_FILES)\
$(markdown_SC_FILES)\
Examples/i3_switch_workspaces.sh\
Examples/brightness_rofi.sh\
Examples/domo_rofi_script.sh\
${top_srcdir}/config/config.def.c\
INSTALL.md\
AUTHORS\
Changelog
##
# Indent
##
indent: ${rofi_SOURCES} ${top_srcdir}/config/config.def.c
uncrustify -c ${top_srcdir}/data/uncrustify.cfg --replace $^
update-manpage: ${top_srcdir}/doc/rofi-manpage.markdown
md2man-roff $^ > ${top_srcdir}/doc/rofi.1
##
# 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
.PHONY: cppcheck
cppcheck: ${rofi_SOURCES}
cppcheck --std=c99 --platform=unix64 --enable=all -Uerror_dialog -I ${top_srcdir}/include/ $^
.PHONY: ohcount
ohcount: ${rofi_SOURCES}
ohcount -i ${top_srcdir}/source/