Skip to content

Commit 1e0c6b9

Browse files
committed
fix build to detect source changes
1 parent 81223f6 commit 1e0c6b9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/amuse/community/arepo/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ clean:
2626
distclean: clean
2727
make -C src distclean
2828

29-
$(CODELIB):
29+
$(CODELIB): .FORCE
3030
make -C src all
3131

3232
worker_code.cc: interface.py
@@ -40,3 +40,5 @@ arepo_worker: worker_code.cc worker_code.h $(CODELIB) $(OBJS)
4040

4141
.cc.o: $<
4242
$(MPICXX) $(CXXFLAGS) $(CODELIB) -c -o $@ $<
43+
44+
.FORCE:

src/amuse/community/arepo/src/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ $(CODELIB): $(CODEOBJS)
4141
$(RANLIB) $@
4242

4343
.cc.o: $<
44-
$(CXX) $(CXXFLAGS) -c -o $@ $<
44+
$(MPICXX) $(CXXFLAGS) -c -o $@ $<
45+
46+
.c.o: $<
47+
$(MPICC) $(CXXFLAGS) -c -o $@ $<

0 commit comments

Comments
 (0)