Makefile
changeset 66 2b4f786d9073
parent 64 993b97c4ad2d
child 67 abe63a276a36
--- a/Makefile
+++ b/Makefile
@@ -1,59 +1,60 @@
-CC=gcc -g -ggdb
-CPP=g++ -g -ggdb
-CFLAGS=-Wall -O2 -Iinclude -ansi
-TARGET=ncurses \
-	numerierung \
-	xdemo \
-	signals \
-	tree \
-	utf8 \
-	file_demo \
-	testcase \
-	atoi_print \
-	data_types \
-	dnsresolve \
-	nomalloc \
-	urandom \
-	threads \
-	crypt \
-	tokenpasting \
-	hex2chars \
-	floating \
-	max \
-	recording \
-	endian \
-	fak \
-	blackhole \
-	folge \
-	counter \
-	sudoku \
-	cunit \
-	md5 \
-	md5rec \
-	myprintf \
-	concatenation \
-	alpha_beta \
-	life \
-	bad_alloc \
-	lotto \
-	database \
-	gauss \
-	mem2swap \
-	prog_limit \
-	connection \
-	copy \
-	function_pointers \
-	sort \
-	min2time \
-	recursive_compiler \
-	getpwnam_error \
-	xmlparser \
-	vector \
-	base10 \
-	files \
-	fork \
-	duff \
-	unicode
+     CC = gcc -g -ggdb
+    CPP = g++ -g -ggdb
+ CFLAGS = -Wall -O2 -Iinclude -ansi
+
+TARGET  = ncurses
+TARGET += numerierung
+TARGET += xdemo
+TARGET += signals
+TARGET += tree
+TARGET += utf8
+TARGET += file_demo
+TARGET += testcase
+TARGET += atoi_print
+TARGET += data_types
+TARGET += dnsresolve
+TARGET += nomalloc
+TARGET += urandom
+TARGET += threads
+TARGET += crypt
+TARGET += tokenpasting
+TARGET += hex2chars
+TARGET += floating
+TARGET += max
+TARGET += recording
+TARGET += endian
+TARGET += fak
+TARGET += blackhole
+TARGET += folge
+TARGET += counter
+TARGET += sudoku
+TARGET += cunit
+TARGET += md5
+TARGET += md5rec
+TARGET += myprintf
+TARGET += concatenation
+TARGET += alpha_beta
+TARGET += life
+TARGET += bad_alloc
+TARGET += lotto
+TARGET += database
+TARGET += gauss
+TARGET += mem2swap
+TARGET += prog_limit
+TARGET += connection
+TARGET += copy
+TARGET += function_pointers
+TARGET += sort
+TARGET += min2time
+TARGET += recursive_compiler
+TARGET += getpwnam_error
+TARGET += xmlparser
+TARGET += vector
+TARGET += base10
+TARGET += files
+TARGET += fork
+TARGET += duff
+TARGET += unicode
 
 .SUFFIXES: .c .cc .asm
 
@@ -287,7 +288,7 @@
 	@echo Linking $< ...
 	@$(CC) -std=c99 -o $@ $<
 
-.PHONY: clean uninstall
+.PHONY: beauty clean uninstall
 
 clean:
 	find -name '*~' -exec rm -f {} \;
@@ -297,4 +298,5 @@
 beauty:
 	find -name '*.[ch]' -exec indent {} \;
 	find -name '*.[ch]' -exec eraser {} \;
+	find -name 'Makefile*' -exec eraser {} \;
 	@make clean