Skip to content

Commit

Permalink
Small improvements to Makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsm-lisper committed Jul 20, 2024
1 parent 1509ed7 commit 9fbd419
Show file tree
Hide file tree
Showing 89 changed files with 89 additions and 89 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions Exercise_incl.mk → Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MAKEFLAGS+=--silent
all: $(BINARY)

$(BINARY): $(CFILES)
echo -n "** Building "$(ANSIYBIN)":"
echo -n " - Building "$(ANSIYBIN)":"
$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
echo $(ANSIGOK)

Expand All @@ -35,7 +35,7 @@ check: $(TEST_RESULTS)
echo $(ANSIGOK)

clean:
echo -n "** Cleaning "$(ANSIYBIN)":"
echo -n " - Cleaning "$(ANSIYBIN)":"
rm -f $(BINARY)
rm -f $(TESTDIR)*.result
echo $(ANSIGOK)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ $(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
echo "* Directory "$(ANSIBOLD)$(ANSIYELLOW)$@$(ANSIRST)":"
$(MAKE) -C $@ $(MAKECMDGOALS)
echo $(ANSIYELLOW)"..."$@$(ANSIRST)" done."
echo " "$(ANSIYELLOW)$@$(ANSIRST)" done.\n"

.PHONY: $(TOPTARGETS) $(SUBDIRS)
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_01.hello/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=hello

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_02.hello_exp/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=hello_exp

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_03.fahr_celsius/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=fahr_celsius

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_04.celsius_fahr/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=celsius_fahr

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_05.fahr_celsius_revers/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=fahr_celsius_revers

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_06.verify_eof/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=verify_eof

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_07.print_eof/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=print_eof

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_08.count_btn/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=count_btn

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_09.trim/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=trim

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_10.visible_esc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=visible_esc

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_12.word_sep/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=word_sep

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_13.word_histogram/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=word_histogram

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_14.char_histogram/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=char_histogram

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_15.temp_func/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=temp_func

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_16.longest_line/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=longest_line

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_17.lines80/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=lines80

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_18.trim_lines/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=trim_lines

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_19.reverse_lines/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=reverse_lines

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_20.detab/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=detab

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_21.entab/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=entab

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_22.fold_lines/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=fold_lines

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_23.remove_comments/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=remove_comments

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/1_24.syntax_check/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=syntax_check

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_1.tutorial/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS=$(wildcard 1_*/)

include ../Chapter_incl.mk
include ../Chapter.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_01.ranges/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=ranges

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_02.loop/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=loop

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_03.htoi/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=htoi

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=squeeze

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_05.any/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=any

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=setbits

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_07.invert/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=invert

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=rightrot

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=bitcount

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/2_10.lower/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=lower

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_2.types_operators_expressions/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS=$(wildcard 2_*/)

include ../Chapter_incl.mk
include ../Chapter.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_01.binsearch/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=binsearch

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_02.escape/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=escape

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_03.expand/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=expand

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_04.itoa/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=itoa

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_05.itob/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=itob

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/3_06.itoa3/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=itoa3

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_3.control_flow/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS=$(wildcard 3_*/)

include ../Chapter_incl.mk
include ../Chapter.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=strrindex

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_4.functions_progr_structure/4_02.atof_sci/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=atof_sci

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=calc__modulo_negative

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=calc__stack_cmds

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__math

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__variables

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__ungetch1

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__ungetch_eof

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__getline

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=calc__static

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_4.functions_progr_structure/4_12.itoa_rec/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=itoa_rec

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=reverse_rec

include ../../Exercise_incl.mk
include ../../Exercise.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=swap_macro

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_4.functions_progr_structure/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS=$(wildcard 4_*/)

include ../Chapter_incl.mk
include ../Chapter.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_01.getint/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=getint

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_02.getfloat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BINARY=getfloat

LFLAGS=-lm

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_03.strcat/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=strcat

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_04.strend/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=strend

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_05.strlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=strlib

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_08.dates_validation/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=dates_validation

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_09.dates_ptr/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=dates_ptr

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_11_1.entab/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=entab

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_11_2.detab/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=detab

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_12_1.entab_col/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=entab_col

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_12_2.detab_col/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=detab_col

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_13.tail/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=tail

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_14.sort_rev/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=sort_rev

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_15.sort_case/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=sort_case

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_16.sort_dirorder/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=sort_dirorder

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_18.dcl_error_fix/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=dcl_error_fix

include ../../Exercise_incl.mk
include ../../Exercise.mk
2 changes: 1 addition & 1 deletion chapter_5.pointers_arrays/5_19.undcl_parens_fix/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BINARY=undcl_parens_fix

include ../../Exercise_incl.mk
include ../../Exercise.mk
Loading

0 comments on commit 9fbd419

Please sign in to comment.