diff options
author | Vitaliy Ivanov <vitaliyi@interfacemasters.com> | 2018-11-29 13:40:37 +0200 |
---|---|---|
committer | Vitaliy Ivanov <vitaliyi@interfacemasters.com> | 2018-11-29 13:40:37 +0200 |
commit | fd963538f3c93800b870283b31313257930af715 (patch) | |
tree | fc86fccc9f4fd8908f668f3f953d21166dad9cf5 | |
parent | c09284ba276a3caf9dd4a8d9440e35e2808d5551 (diff) |
build: cleanup of dpdk examples.
- clean install dependencies on example binary
- add more rules to clean command
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com>
-rw-r--r-- | example/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/example/Makefile.in b/example/Makefile.in index 050cac8e1..bf218f503 100644 --- a/example/Makefile.in +++ b/example/Makefile.in @@ -13,7 +13,7 @@ ndpiReader: $(OBJS) $(LIBNDPI) %.o: %.c $(HEADERS) Makefile $(CC) $(CFLAGS) -c $< -o $@ -install: ndpiReader +install: mkdir -p $(DESTDIR)$(PREFIX)/bin/ cp ndpiReader $(DESTDIR)$(PREFIX)/bin/ [ -f build/app/ndpiReader.dpdk ] && cp build/app/ndpiReader.dpdk $(DESTDIR)$(PREFIX)/bin/ || true @@ -23,7 +23,9 @@ dpdk: make -f Makefile.dpdk clean: - /bin/rm -f *.o ndpiReader + /bin/rm -f *.o ndpiReader ndpiReader.dpdk + /bin/rm -f .*.dpdk.cmd .*.o.cmd *.dpdk.map .*.o.d + /bin/rm -f _install _postbuild _postinstall _preinstall /bin/rm -rf build distclean: clean |