Commit 3613f613 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Makefile cleanups

parent 272c6495
......@@ -64,11 +64,13 @@ test: all
clean:
rm -f build/*.so
rm -f build/*.mex*
rm -f build/lib/*.o
rm -f *~
rm -f moberg-*.spec
rm -f moberg-*.tar.gz
make -C test clean
for d in $(ADAPTORS) ; do make -C $$d clean ; done
for d in $(PLUGINS) ; do make -C $$d clean ; done
build/libmoberg.so: build/lib/moberg.o
build/libmoberg.so: build/lib/moberg_config.o
......@@ -79,3 +81,9 @@ build/lib/%.o: moberg_inline.h
build/lib/moberg.o: moberg_config.h
build/lib/moberg.o: moberg_module.h
build/lib/moberg.o: moberg_parser.h
build/lib/moberg_device.o: moberg.h
build/lib/moberg_device.o: moberg_channel.h
build/lib/moberg_device.o: moberg_config.h
build/lib/moberg_device.o: moberg_device.h
build/lib/moberg_device.o: moberg_inline.h
......@@ -15,6 +15,9 @@ build/%.o: %.c Makefile | build
build:
mkdir -p $@
clean:
rm -f build/*
build/comedi.c: ../../moberg.h
build/comedi.o: ../../moberg_config.h
build/comedi.o: ../../moberg_device.h
......
......@@ -15,4 +15,7 @@ build/%.o: %.c Makefile | build
build:
mkdir -p $@
clean:
rm -f build/*
build/libtest.o: ../../moberg_module.h
......@@ -15,6 +15,9 @@ build/%.o: %.c Makefile | build
build:
mkdir -p $@
clean:
rm -f build/*
build/serial2002.o: ../../moberg_module.h
build/serial2002.o: serial2002_lib.h
build/serial2002_lib.o: serial2002_lib.h
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment