aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/013_nxcompext-makefile-uninstall.patch
blob: f4002a565291213e6d19968fd7f62bb89d55eebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Index: nx-libs/nxcompext/Makefile.in
===================================================================
--- nx-libs.orig/nxcompext/Makefile.in	2011-12-05 09:20:15.000000000 +0100
+++ nx-libs/nxcompext/Makefile.in	2011-12-05 09:24:37.000000000 +0100
@@ -60,7 +60,9 @@
 INSTALL         = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA    = @INSTALL_DATA@
-
+INSTALL_LINK    = cp -av
+DESTDIR         =
+RM_FILE         = rm -f
 #
 # This should be autodetected.
 #
@@ -147,12 +149,33 @@
 		fi
 		touch depend.status
 
-install:	install.bin install.man
+install:       install.bin install.lib install.man
 
 install.bin:
 
+install.lib: all
+	./mkinstalldirs $(DESTDIR)$(prefix)/lib/nx
+	./mkinstalldirs $(DESTDIR)$(prefix)/include/nx
+	$(INSTALL_DATA) libXcompext.so.*        $(DESTDIR)$(prefix)/lib/nx
+	$(INSTALL_LINK) libXcompext.so          $(DESTDIR)$(prefix)/lib/nx
+	$(INSTALL_DATA) NX*.h                   $(DESTDIR)$(prefix)/include/nx
+	echo "Running ldconfig tool, this may take a while..." && ldconfig || true
+
 install.man:
 
+uninstall:     uninstall.bin uninstall.lib uninstall.man
+
+uninstall.bin:
+
+uninstall.lib:
+	$(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompext.so.*
+	$(RM_FILE) $(DESTDIR)$(prefix)/lib/nx/libXcompext.so
+	$(RM_FILE) $(DESTDIR)$(prefix)/include/nx/NXlib.h
+	$(RM_FILE) $(DESTDIR)$(prefix)/include/nx/NXlibint.h
+	echo "Running ldconfig tool, this may take a while..." && ldconfig || true
+
+uninstall.man:
+
 clean:
 		-rm -f *~ *.o *.bak *.orig *.rej st?????? core core.* *.out.* \
 		@ALL@