summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandroColomar <colomar.6.4.3@gmail.com>2018-10-28 20:46:35 +0100
committerAlejandroColomar <colomar.6.4.3@gmail.com>2018-10-28 20:46:35 +0100
commitf8a471171ca409c4612ec7a1b45cbd2a88c7a1b9 (patch)
treea5801c7b30363aea8720539cf1e24df0302c99b2
parent66c28ab28d0f37e318bccb4a11f66bb7da969fa4 (diff)
Minor changes
-rw-r--r--modules/Makefile14
-rw-r--r--modules/about/Makefile4
-rw-r--r--modules/about/src/about.c16
-rw-r--r--modules/about/tmp/Makefile4
-rw-r--r--modules/tmp/Makefile2
-rw-r--r--src/main.cpp8
-rw-r--r--tmp/Makefile3
7 files changed, 22 insertions, 29 deletions
diff --git a/modules/Makefile b/modules/Makefile
index dffbf68..fbf9bc1 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -40,20 +40,10 @@ all:
clean:
- $(Q)cd $(ABOUT_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(CTRL_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(IMG_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(MENU_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(PROC_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(SAVE_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(USR_DIR) && $(MAKE) clean && cd ..
- $(Q)cd $(TMP_DIR) && $(MAKE) clean && cd ..
+ $(Q)find . -type f -name '*.o' -exec rm '{}' '+'
+ $(Q)find . -type f -name '*.s' -exec rm '{}' '+'
@echo "Clean modules"
################################################################################
######## End of file ###########################################################
################################################################################
-######## End of file ###########################################################
-################################################################################
-######## End of file ###########################################################
-################################################################################
diff --git a/modules/about/Makefile b/modules/about/Makefile
index 42eb4c2..c1c25ef 100644
--- a/modules/about/Makefile
+++ b/modules/about/Makefile
@@ -18,7 +18,3 @@ clean:
################################################################################
######## End of file ###########################################################
################################################################################
-######## End of file ###########################################################
-################################################################################
-######## End of file ###########################################################
-################################################################################
diff --git a/modules/about/src/about.c b/modules/about/src/about.c
index 8a353b8..d443e1d 100644
--- a/modules/about/src/about.c
+++ b/modules/about/src/about.c
@@ -6,18 +6,15 @@
/******************************************************************************
******* headers **************************************************************
******************************************************************************/
-/* * * * * * * * * *
- * * * Standard * * * * * *
- * * * * * * * * * */
+/* Standard C ----------------------------------------------------------------*/
/* printf() */
#include <stdio.h>
-/* * * * * * * * * *
- * * * Other * * * * * * *
- * * * * * * * * * */
- /* alx_prn_file() */
+/* libalx --------------------------------------------------------------------*/
+ /* alx_snprint_file() */
#include "alx_file.h"
+/* Module --------------------------------------------------------------------*/
#include "about.h"
@@ -84,3 +81,8 @@ void print_version (void)
{
printf("" PROG_NAME " " PROG_VERSION "\n\n");
}
+
+
+/******************************************************************************
+ ******* end of file **********************************************************
+ ******************************************************************************/
diff --git a/modules/about/tmp/Makefile b/modules/about/tmp/Makefile
index b75a882..c415744 100644
--- a/modules/about/tmp/Makefile
+++ b/modules/about/tmp/Makefile
@@ -44,3 +44,7 @@ about.o: about.s
clean:
$(Q)rm -f *.o *.s
+
+################################################################################
+######## End of file ###########################################################
+################################################################################
diff --git a/modules/tmp/Makefile b/modules/tmp/Makefile
index d4c8a26..1738e4c 100644
--- a/modules/tmp/Makefile
+++ b/modules/tmp/Makefile
@@ -1,4 +1,4 @@
-# -*- MakeFile -*-
+#!/usr/bin/make -f
# MACRO = substitute with this
diff --git a/src/main.cpp b/src/main.cpp
index ae78035..875cfbd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -26,8 +26,8 @@
/******************************************************************************
******* static functions *****************************************************
******************************************************************************/
-void init_all (int *argc, char *(*argv[]));
-void cleanup (void);
+static void init_all (int *argc, char *(*argv[]));
+static void cleanup (void);
/******************************************************************************
@@ -53,7 +53,7 @@ int main (int argc, char *argv[])
/******************************************************************************
******* static functions *****************************************************
******************************************************************************/
-void init_all (int *argc, char *(*argv[]))
+static void init_all (int *argc, char *(*argv[]))
{
/* Init curses */
alx_start_curses();
@@ -72,7 +72,7 @@ void init_all (int *argc, char *(*argv[]))
parser(*argc, *argv);
}
-void cleanup (void)
+static void cleanup (void)
{
/* Clean img buffers */
img_iface_cleanup_main();
diff --git a/tmp/Makefile b/tmp/Makefile
index 5cfe99e..a5043d2 100644
--- a/tmp/Makefile
+++ b/tmp/Makefile
@@ -28,7 +28,7 @@ SRC_DIR = $(MAIN_DIR)/src/
# dependencies
-ALL = main.o
+ALL = main.o
MAIN_INC_LIBALX = alx_ncur.hpp
MAIN_INC_ABOUT = about.hpp
@@ -67,6 +67,7 @@ main.o: main.s
clean:
$(Q)rm -f *.o *.s
+ @echo "Clean binaries"
################################################################################
######## End of file ###########################################################