Package: xdesktopwaves / 1.3-4

makefile.patch Patch series | download
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
--- xdesktopwaves-1.3.orig/Makefile
+++ xdesktopwaves-1.3/Makefile
@@ -22,11 +22,20 @@
 
 #============================ Installer configuration ==========================
 
-BINDIR  = /usr/X11R6/bin
-MAN1DIR = /usr/X11R6/man/man1
+BINDIR  = /usr/games
+MAN1DIR = /usr/share/man/man1
+PIXMAPS = /usr/share/pixmaps
 INSTALL = install
 RM      = rm -f -v
 
+# DESTDIR Added for Debian packaging
+DESTDIR =
+
+INST_OWN = -o root -g root
+MAKE_DIR  = $(INSTALL) -p -d $(INST_OWN) -m 755
+INST_FILE = $(INSTALL) -c    $(INST_OWN) -m 444
+INST_PROG = $(INSTALL) -c    $(INST_OWN) -m 755 -s
+
 #===============================================================================
 
 all: xdesktopwaves
@@ -40,10 +49,17 @@
 clean:
 	$(RM) xdesktopwaves.o
 
+distclean: clean
+	$(RM) xdesktopwaves
+
 install: xdesktopwaves xdesktopwaves.1
-	$(INSTALL) -c -m 0755 -s xdesktopwaves $(BINDIR)/xdesktopwaves
-	$(INSTALL) -c -m 0444 xdesktopwaves.1 $(MAN1DIR)/xdesktopwaves.1
+	$(MAKE_DIR) $(DESTDIR)$(BINDIR)/
+	$(MAKE_DIR) $(DESTDIR)$(MAN1DIR)/
+	$(MAKE_DIR) $(DESTDIR)$(PIXMAPS)/
+	$(INST_PROG) xdesktopwaves $(DESTDIR)$(BINDIR)/xdesktopwaves
+	$(INST_FILE) xdesktopwaves.1 $(DESTDIR)$(MAN1DIR)/xdesktopwaves.1
+	$(INST_FILE) xdesktopwaves.xpm $(DESTDIR)$(PIXMAPS)/xdesktopwaves.xpm
 
 uninstall:
-	$(RM) $(BINDIR)/xdesktopwaves
-	$(RM) $(MAN1DIR)/xdesktopwaves.1
+	$(RM) $(DESTDIR)$(BINDIR)/xdesktopwaves
+	$(RM) $(DESTDIR)$(MAN1DIR)/xdesktopwaves.1