diff options
author | Your Name <you@example.com> | 2023-01-28 11:04:26 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2023-01-28 11:04:26 +0000 |
commit | b0f53621f469b655666d9405bd9bbce710821a46 (patch) | |
tree | 0138992933b011dea1fde55d3073e0855334b5e6 /Makefile | |
parent | 3f091bd5ad4e8bb26bc74639425a6eb9186be231 (diff) | |
download | indi_mount_driver-b0f53621f469b655666d9405bd9bbce710821a46.tar.gz indi_mount_driver-b0f53621f469b655666d9405bd9bbce710821a46.tar.bz2 indi_mount_driver-b0f53621f469b655666d9405bd9bbce710821a46.zip |
tidy up build
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -1,16 +1,20 @@ -D=indi-celestronaux +D=indi-celestronaux indi-lxd650 -default: indi-celestronaux/make indi-lxd650/make +default: ${D:%=%/default} +clean: ${D:%=%/clean} +install: ${D:%=%/install} -install: indi-celestronaux/install indi-lxd650/install +%/install:%/default + (cd ${@:%/install=%/build} && make install) -%/install:%/make - (cd ${@:%/install=%} && make install) +%/default:%/build/Makefile + (cd ${@:%/default=%/build} && make) -%/make:%/Makefile - (cd ${@:%/make=%} && make) +%/build/Makefile: + mkdir -p ${@:%/Makefile=%} + (cd ${@:%/Makefile=%} && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..) - -%/Makefile: - (cd ${@:%/Makefile=%} && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr) +%/clean: + /bin/rm -rf ${@:%/clean=%/build} + |