From aa21991323eb7a7b2322491455305b2715f0c4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 29 Jan 2019 20:18:37 +0100 Subject: [PATCH] bar: move C file to subdirectory --- CMakeLists.txt | 3 ++- bar.c => bar/bar.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename bar.c => bar/bar.c (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cca58a..3632d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,6 @@ pkg_check_modules(CAIRO REQUIRED cairo cairo-xcb cairo-ft) pkg_check_modules(YAML REQUIRED yaml-0.1) add_executable(f00bar - bar.c bar.h config.c config.h config-verify.c config-verify.h decoration.h @@ -44,6 +43,8 @@ add_executable(f00bar tag.c tag.h xcb.c xcb.h yml.c yml.h + + bar/bar.c bar.h ) # Make global symbols in f00bar visible to dlopen:ed plugins diff --git a/bar.c b/bar/bar.c similarity index 99% rename from bar.c rename to bar/bar.c index 0946fdd..14af0f1 100644 --- a/bar.c +++ b/bar/bar.c @@ -1,4 +1,4 @@ -#include "bar.h" +#include "../bar.h" #include #include @@ -25,8 +25,8 @@ #define LOG_MODULE "bar" #define LOG_ENABLE_DBG 0 -#include "log.h" -#include "xcb.h" +#include "../log.h" +#include "../xcb.h" struct private { /* From bar_config */