summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-01-28 11:04:26 +0000
committerYour Name <you@example.com>2023-01-28 11:04:26 +0000
commitb0f53621f469b655666d9405bd9bbce710821a46 (patch)
tree0138992933b011dea1fde55d3073e0855334b5e6 /Makefile
parent3f091bd5ad4e8bb26bc74639425a6eb9186be231 (diff)
downloadindi_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--Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index ac9f08d..6451b49 100644
--- a/Makefile
+++ b/Makefile
@@ -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}
+