Commit cb777d8bd72fc43793968dc7baee5934842f5814
1 parent
b131a63a
Exists in
master
targets now automatically enumerated
Showing
1 changed file
with
4 additions
and
24 deletions
Show diff stats
Makefile
@@ -73,35 +73,15 @@ else | @@ -73,35 +73,15 @@ else | ||
73 | endif | 73 | endif |
74 | 74 | ||
75 | 75 | ||
76 | -FDC_BINS = \ | ||
77 | - all \ | ||
78 | - bibd \ | ||
79 | - c-exactly \ | ||
80 | - change \ | ||
81 | - costas \ | ||
82 | - golfers \ | ||
83 | - golomb \ | ||
84 | - graphs \ | ||
85 | - k-queens \ | ||
86 | - langford \ | ||
87 | - magic-seq \ | ||
88 | - magic-square \ | ||
89 | - money \ | ||
90 | - partition \ | ||
91 | - qap \ | ||
92 | - queens \ | ||
93 | - queens2 \ | ||
94 | - sudoku \ | ||
95 | - test-setup \ | ||
96 | - times \ | ||
97 | - trivial \ | ||
98 | - x | 76 | +FDC_SRCS = $(wildcard *.c) |
77 | +FDC_NAMES = $(subst .c,,$(FDC_SRCS)) | ||
78 | +FDC_BINS = $(FDC_NAMES) x | ||
99 | 79 | ||
100 | DFDC_BINS = $(FDC_BINS:=-mpi) | 80 | DFDC_BINS = $(FDC_BINS:=-mpi) |
101 | 81 | ||
102 | 82 | ||
103 | none: | 83 | none: |
104 | - @echo "choose one from: queens costas golomb langford qap ..." | 84 | + @echo "choose one from: $(FDC_NAMES) ..." |
105 | 85 | ||
106 | 86 | ||
107 | $(FDC_BINS) : $(FDC_FILES) $(DFDC_FILES) $(AGENTS_C) | 87 | $(FDC_BINS) : $(FDC_FILES) $(DFDC_FILES) $(AGENTS_C) |