updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / hodie / Makefile.diff
blobc7d9067b8794c1c85314cc964e3dad7bd849daec
1 --- Makefile 2008-08-03 15:20:34.000000000 +0530
2 +++ Makefile.1 2008-08-03 15:20:22.000000000 +0530
3 @@ -3,20 +3,20 @@
4 CFLAGS=-g -Wall
6 # Install paths and command on recommendation from Peter Pentchev
7 -INSTALL=/usr/bin/install -c
8 +INSTALL=/bin/install -c
10 # Some prefer /usr/local over /usr as installation root
11 #INSTALL_PATH=/usr/local
12 -INSTALL_PATH=/usr
13 +INSTALL_PATH=$(DESTDIR)/usr
15 BINDIR=$(INSTALL_PATH)/bin
16 -MAN1DIR=$(INSTALL_PATH)/man/man1
17 +MAN1DIR=$(INSTALL_PATH)/share/man/man1
19 # BSD might prefer this
20 # DOCPATH=$(INSTALL_PATH)/share/doc/hodie
22 # Linux might prefer this:
23 -DOCDIR=$(INSTALL_PATH)/doc/packages/hodie
24 +DOCDIR=$(INSTALL_PATH)/share/doc/hodie
26 #############################
27 # End of user configuration #
28 @@ -41,10 +41,10 @@
29 $(OBJECTS): $(HEADERS)
31 install: $(EXEC)
32 - $(INSTALL) -s -m 755 $(EXEC) $(BINDIR)
33 - install -m 644 hodie.1 $(MAN1DIR)
34 + $(INSTALL) -D -m755 $(EXEC) $(BINDIR)/$(EXEC)
35 + install -D -m644 hodie.1 $(MAN1DIR)/hodie.1
36 install -d $(DOCDIR)
37 - install -m 644 $(DOCS) $(DOCDIR)
38 + install -m644 $(DOCS) $(DOCDIR)
40 uninstall:
41 -rm -f $(BINDIR)/$(EXEC)