I'm trying to edit a Makefile that contains:
... install -d $(DESTDIR)/usr/lib/myApp install -d $(DESTDIR)/usr/lib/myApp/scripts install -t $(DESTDIR)/usr/lib/myApp/scripts \ src/scripts/ap.sh \ src/scripts/connect.sh \ src/scripts/devices.sh \ src/scripts/create_ap \ src/scripts/scan.sh ...
After reading this Q/A, I got the idea that I could replace all that with:
install -D src/scripts/* $(DESTDIR)/usr/lib/myApp/scripts
But the above gives me an error saying:
install: target '/var/lib/jenkins/data/workspace/network-service_build-test@2/build/debian/myApp-service-network/usr/lib/myApp/scripts/network' is not a directory
Am I misunderstanding the use of the
-D flag here? I'm thinking it should move my files to the path specified and create the folders if needed.