From b09056820223f92a955a21999d4e80fcabc56b8d Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Tue, 22 Nov 2016 09:49:47 -0800 Subject: using install command instead of cp and mkdir --- Makefile | 7 +++++-- src/Makefile | 6 +++--- utils/Makefile | 20 ++++++++++---------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index f1be254..5ae7c62 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,11 @@ clean: .PHONY: install install: - mkdir -p $(DESTDIR)$(INCDIR)/tinyalsa - cp -Ru include/tinyalsa $(DESTDIR)$(INCDIR)/ + install -d $(DESTDIR)$(INCDIR)/tinyalsa + install include/tinyalsa/pcm.h $(DESTDIR)$(INCDIR)/ + install include/tinyalsa/mixer.h $(DESTDIR)$(INCDIR)/ + install include/tinyalsa/asoundlib.h $(DESTDIR)$(INCDIR)/ + install include/tinyalsa/version.h $(DESTDIR)$(INCDIR)/ $(MAKE) -C src install $(MAKE) -C utils install $(MAKE) -C doxygen install diff --git a/src/Makefile b/src/Makefile index 4c392cd..8bc5bda 100644 --- a/src/Makefile +++ b/src/Makefile @@ -40,8 +40,8 @@ clean: .PHONY: install install: libtinyalsa.a libtinyalsa.so.1 - mkdir -p $(DESTDIR)$(LIBDIR)/ + install -d $(DESTDIR)$(LIBDIR)/ ln -sf libtinyalsa.so.1 $(DESTDIR)$(LIBDIR)/libtinyalsa.so - cp -u libtinyalsa.a $(DESTDIR)$(LIBDIR)/ - cp -u libtinyalsa.so.1 $(DESTDIR)$(LIBDIR)/ + install libtinyalsa.a $(DESTDIR)$(LIBDIR)/ + install libtinyalsa.so.1 $(DESTDIR)$(LIBDIR)/ diff --git a/utils/Makefile b/utils/Makefile index 3093eee..6a9efb7 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -36,14 +36,14 @@ clean: .PHONY: install install: tinyplay tinycap tinymix tinypcminfo - mkdir -p $(DESTDIR)$(BINDIR) - cp -u tinyplay $(DESTDIR)$(BINDIR)/ - cp -u tinycap $(DESTDIR)$(BINDIR)/ - cp -u tinymix $(DESTDIR)$(BINDIR)/ - cp -u tinypcminfo $(DESTDIR)$(BINDIR)/ - mkdir -p $(DESTDIR)$(MANDIR)/man1 - cp -u tinyplay.1 $(DESTDIR)$(MANDIR)/man1/ - cp -u tinycap.1 $(DESTDIR)$(MANDIR)/man1/ - cp -u tinymix.1 $(DESTDIR)$(MANDIR)/man1/ - cp -u tinypcminfo.1 $(DESTDIR)$(MANDIR)/man1/ + install -d $(DESTDIR)$(BINDIR) + install tinyplay $(DESTDIR)$(BINDIR)/ + install tinycap $(DESTDIR)$(BINDIR)/ + install tinymix $(DESTDIR)$(BINDIR)/ + install tinypcminfo $(DESTDIR)$(BINDIR)/ + install -d $(DESTDIR)$(MANDIR)/man1 + install tinyplay.1 $(DESTDIR)$(MANDIR)/man1/ + install tinycap.1 $(DESTDIR)$(MANDIR)/man1/ + install tinymix.1 $(DESTDIR)$(MANDIR)/man1/ + install tinypcminfo.1 $(DESTDIR)$(MANDIR)/man1/ -- cgit v1.2.3