Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using $(MAKE) #93

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $(SHAREDLIB): $(OBJ) $(SVBLIB)
$(CC) $(CFLAGS) -shared $^ -o $@ $(LDFLAGS)

$(SVBLIB):
make -C $(SVB) no_simd=$(no_simd) libstreamvbyte.a
$(MAKE) -C $(SVB) no_simd=$(no_simd) libstreamvbyte.a

$(BUILD_DIR)/slow5.o: src/slow5.c src/slow5_extra.h src/slow5_idx.h src/slow5_misc.h src/klib/ksort.h src/slow5_byte.h $(SLOW5_H)
$(CC) $(CFLAGS) $(CPPFLAGS) $< -c -fpic -o $@
Expand All @@ -72,20 +72,20 @@ $(BUILD_DIR)/slow5_mt.o: src/slow5_mt.c include/slow5/slow5_mt.h $(SLOW5_H)

clean:
rm -rf $(OBJ) $(STATICLIB) $(SHAREDLIB) $(SHAREDLIBV)
make -C $(SVB) clean
$(MAKE) -C $(SVB) clean

# Delete all gitignored files (but not directories)
distclean: clean
git clean -f -X
rm -rf $(BUILD_DIR)/* autom4te.cache

test: slow5lib
make -C test clean
make -C test zstd=$(zstd)
$(MAKE) -C test clean
$(MAKE) -C test zstd=$(zstd)
./test/test.sh

pyslow5:
make clean
$(MAKE) clean
rm -rf *.so python/pyslow5.cpp python/pyslow5.c build/lib.* build/temp.* build/bdist.* sdist pyslow5.egg-info dist
python3 setup.py build
cp build/lib.*/*.so ./
Expand All @@ -99,7 +99,7 @@ test-prep: slow5lib
./test/bin/make_blow5

valgrind: slow5lib
make -C test zstd=$(zstd)
$(MAKE) -C test zstd=$(zstd)
./test/test.sh mem

examples: slow5lib
Expand Down
Loading