Browse files

Add DESTDIR support

  • Loading branch information...
1 parent b8bf784 commit 0c060862559a8211a3718dc78b5f3b2960f0f7fa Dave Täht committed Aug 30, 2011
Showing with 5 additions and 4 deletions.
  1. +2 −2 doc/Makefile
  2. +1 −0 src/clients/Makefile
  3. +2 −2 src/engines/Makefile
View
4 doc/Makefile
@@ -17,13 +17,13 @@ all:
install:
mkdir -p $(DESTDIR)$(HTMLDIR) $(DESTDIR)$(IMAGEDIR)
- mkdir -p $(DOCDIR)
+ mkdir -p $(DESTDIR)$(DOCDIR)
cp $(HTML) $(DESTDIR)$(HTMLDIR)
cp $(IMAGES) $(DESTDIR)$(IMAGEDIR)
cp gnugol.1 /tmp
@rm -f /tmp/gnugol.1.gz
gzip /tmp/gnugol.1
- cp /tmp/gnugol.1.gz $(DOCDIR)gnugol.1.gz
+ cp /tmp/gnugol.1.gz $(DESTDIR)$(DOCDIR)gnugol.1.gz
rm -f /tmp/gnugol.1.gz
install-stripped: install
View
1 src/clients/Makefile
@@ -59,6 +59,7 @@ gnugol_fcgi.cgi: gnugol_fcgi.c $(HEADERS) $(COMMON) $(PLUGINS)
# $(CC) gnugold.o -o gnugold ${LIBS}
install: $(PROGS)
+ @mkdir -p $(DESTDIR)$(BINDIR)
cp gnugol $(DESTDIR)$(BINDIR)
# cp gnugol.cgi $(DESTDIR)$(CGIDIR)
View
4 src/engines/Makefile
@@ -64,7 +64,7 @@ credits.$(EXT) : credits.c $(HEADERS) $(ENGINES)
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) credits.c -o $@ $(LDFLAGS)
install: $(OBJECTS)
- @mkdir -p $(SHAREDLIBDIR)
- cp *.$(EXT) $(SHAREDLIBDIR)
+ @mkdir -p $(DESTDIR)$(SHAREDLIBDIR)
+ cp *.$(EXT) $(DESTDIR)$(SHAREDLIBDIR)
clean:
rm -f $(OBJECTS) $(PROGS) *~

0 comments on commit 0c06086

Please sign in to comment.