commit 2b873cd31b24d9cfe6eca4dbbb5e0ac1d57bdac9
parent 168c10f5cb252e5340df9604210e2b84ecc5b318
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  6 Nov 2019 09:47:05 +0100
Stick to POSIX make features
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,8 +1,8 @@
 CFLAGS = -std=c99 -pedantic -Wall -O3
 LDFLAGS = -lm
-SRC = $(wildcard *.c)
-OBJ = $(patsubst %.c,%.o,$(SRC))
-HDR = $(wildcard *.h)
+SRC = arrays.c fluid.c main.c simulation.c
+OBJ = $(SRC:.c=.o)
+HDR = arrays.h fluid.h parameter_defaults.h simulation.h
 BIN = ./1d_fd_simple_shear
 
 PREFIX ?= /usr/local
@@ -20,7 +20,7 @@ install: $(BIN)
 	$(INSTALL) -m 0755 $(BIN) $(DESTDIR)$(PREFIX)/bin
 
 uninstall:
-	$(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN)
+	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
 
 watch:
 	echo $(SRC) $(HDR) | tr ' ' '\n' | entr -s 'make && ./1d_fd_simple_shear'
@@ -39,8 +39,8 @@ memtest: $(BIN)
 		--time-end 3600
 
 clean:
-	$(RM) *.txt
-	$(RM) *.o
-	$(RM) 1d_fd_simple_shear
+	rm -f *.txt
+	rm -f *.o
+	rm -f 1d_fd_simple_shear
 
 .PHONY: default install uninstall watch test memtest clean