updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gfontsel / Makefile.patch
blobaadea6d0786c22b69c18209df8b6ce56eccce51f
1 --- Makefile.old 2003-10-05 11:05:39.000000000 -0400
2 +++ Makefile 2008-03-27 16:41:08.421502876 -0400
3 @@ -24,10 +24,10 @@
4 LIBS += `pkg-config --libs gtk+-2.0`
6 # Location where to install the binary.
7 -BINDIR = /usr/local/bin
8 +BINDIR = $(DESTDIR)/bin
10 # Location where to install the manual-page.
11 -MANDIR = /usr/local/man/man1
12 +MANDIR = $(DESTDIR)/man/man1
14 ##### Maintainer stuff goes here:
16 @@ -86,10 +86,8 @@
18 # Install the program and manual page. You should be root to do this.
19 install: $(BASENAME)
20 - @if [ `id -u` != 0 ]; then \
21 - echo "You must be root to install the program!"; \
22 - exit 1; \
23 - fi
24 + -mkdir -p $(BINDIR)
25 + -mkdir -p $(MANDIR)
26 install -m 755 $(BASENAME) $(BINDIR)
27 if [ -e $(BASENAME).1 ]; then \
28 install -m 644 $(BASENAME).1 $(MANDIR); \
29 @@ -97,10 +95,6 @@
32 uninstall:;
33 - @if [ `id -u` != 0 ]; then \
34 - echo "You must be root to uninstall the program!"; \
35 - exit 1; \
36 - fi
37 rm -f $(BINDIR)/$(BASENAME)
38 rm -f $(MANDIR)/$(BASENAME).1*