summarylogtreecommitdiffstats
path: root/Makefile.patch
blob: 7d991d7e96c0f789860f15c447a5932a371d84b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Makefile
+++ Makefile
@@ -1320,7 +1320,10 @@

 install_config: FORCE
 	@test -d $(INSTALL_ROOT)/etc/xdg/TUT || mkdir -p $(INSTALL_ROOT)/etc/xdg/TUT
-	cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini /etc/xdg/TUT/Kactus2.ini; (test -d /usr/lib64 && ln -f -s /usr/bin/Kactus2 /usr/lib64/libKactus2.so) || (test -d /lib/x86_64-linux-gnu && ln -f -s /usr/bin/Kactus2 /lib/x86_64-linux-gnu/libKactus2.so)
+	cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini $(INSTALL_ROOT)/etc/xdg/TUT/Kactus2.ini
+	(test -d /usr/lib && (mkdir -p $(INSTALL_ROOT)/usr/lib ; ln -f -s /usr/bin/Kactus2 $(INSTALL_ROOT)/usr/lib/libKactus2.so)) || \
+	(test -d /usr/lib64 && (mkdir -p $(INSTALL_ROOT)/usr/lib64 ; ln -f -s /usr/bin/Kactus2 $(INSTALL_ROOT)/usr/lib64/libKactus2.so)) || \
+	(test -d /lib/x86_64-linux-gnu && (mkdir -p $(INSTALL_ROOT)/lib/x86_64-linux-gnu ; ln -f -s /usr/bin/Kactus2 $(INSTALL_ROOT)/lib/x86_64-linux-gnu/libKactus2.so))


 install_library: FORCE