@@ -69,15 +69,14 @@ CFLAGS=-O3 -Wall -fopenmp
69
69
70
70
# #########################################################################
71
71
72
- # Compile directories
72
+ # Directories
73
73
SRCDIR = src
74
74
OBJDIR = obj
75
75
BINDIR = bin
76
-
77
- # Script directories
78
76
BASHDIR = bash
79
77
RSTATSDIR = rstats
80
78
PYTHONDIR = python
79
+ MISCDIR = misc
81
80
82
81
# Create necessary directories
83
82
$(shell mkdir -p $(OBJDIR) $(BINDIR) $(BINDIR)/force-test $(BINDIR)/force-misc)
@@ -114,15 +113,15 @@ TEST_EXE = $(patsubst $(SRCDIR)/tests/%.c, $(BINDIR)/force-test/%, $(TEST_SRC))
114
113
DEPENDENCIES = $(CROSS_OBJ:.o=.d ) $(LOWER_OBJ:.o=.d ) $(HIGHER_OBJ:.o=.d ) $(AUX_OBJ:.o=.d )
115
114
116
115
# Targets
117
- all : exe tests scripts
116
+ all : exe tests scripts misc
118
117
exe : aux higher lower
119
118
aux : $(MAIN_AUX_EXE )
120
119
higher : $(MAIN_HIGHER_EXE )
121
120
lower : $(MAIN_LOWER_EXE )
122
121
tests : $(TEST_EXE )
123
122
scripts : bash rstats python external
124
123
dev : $(BINDIR ) /force-stratified-sample # specific target for development
125
- .PHONY : bash rstats python external scripts install
124
+ .PHONY : bash rstats python external scripts misc install
126
125
# .PHONY: temp all install install_ bash python rstats misc external clean build check
127
126
128
127
# Include dependencies
@@ -273,6 +272,14 @@ external:
273
272
cp $(shell which landsatlinks) $(BINDIR ) /force-level1-landsat
274
273
275
274
275
+ # misc files
276
+
277
+ misc :
278
+ @for file in $(MISCDIR ) /* ; do \
279
+ cp $$ file $(BINDIR ) /force-misc/; \
280
+ done
281
+
282
+
276
283
# ## dummy code for testing stuff
277
284
278
285
# dummy: temp cross aux higher src/dummy.c
@@ -302,6 +309,3 @@ clean:
302
309
# $(info $(miscfiles) installed), \
303
310
# $(error $(miscfiles) was not installed properly!)))
304
311
305
- # misc: temp
306
- # $(foreach miscfiles,$(FORCE_MISC),\
307
- # $(shell cp $(DD)/$(miscfiles) -t $(TM)))
0 commit comments