aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-11-22 09:49:47 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-11-22 09:49:47 -0800
commitb09056820223f92a955a21999d4e80fcabc56b8d (patch)
tree78c09bc3e5070a7735f2786665102bab90708753
parentf5f3250796252f568166ff7cda91049239d12514 (diff)
using install command instead of cp and mkdir
-rw-r--r--Makefile7
-rw-r--r--src/Makefile6
-rw-r--r--utils/Makefile20
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/