48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
--- a/AStyle/build/gcc/Makefile
|
|
+++ b/AStyle/build/gcc/Makefile
|
|
@@ -38,7 +38,7 @@ objdir = obj
|
|
ipath=$(prefix)/bin
|
|
CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11
|
|
JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
|
|
-INSTALL=install -o $(USER) -g $(USER)
|
|
+INSTALL=install
|
|
|
|
# Library's major version number -- Increment in case of incompatible API
|
|
# change.
|
|
@@ -209,23 +209,18 @@ cleanobj:
|
|
rm -f $(objdir)/*.o
|
|
|
|
install:
|
|
- $(INSTALL) -m 755 -d $(ipath)
|
|
- @$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
|
|
-
|
|
- @if [ -d $(SYSCONF_PATH)/html ]; then \
|
|
- rm -rf $(SYSCONF_PATH)/html; \
|
|
- fi
|
|
-
|
|
- $(INSTALL) -m 755 -d $(SYSCONF_PATH)
|
|
- @mkdir -p $(SYSCONF_PATH)/html;
|
|
- @for files in astyle.html \
|
|
- install.html \
|
|
- news.html \
|
|
- notes.html \
|
|
- styles.css; \
|
|
- do \
|
|
- $(INSTALL) -m 644 ../../doc/$$files $(SYSCONF_PATH)/html; \
|
|
- done
|
|
+ # binary
|
|
+ $(INSTALL) -vDm755 -t $(DESTDIR)$(ipath) $(bindir)/astyle
|
|
+
|
|
+ # header
|
|
+ $(INSTALL) -vDm644 ../../src/astyle.h -t $(DESTDIR)/$(prefix)/include
|
|
+
|
|
+ # shared libraries
|
|
+ $(INSTALL) -m 755 -d $(DESTDIR)/$(prefix)/lib
|
|
+ find bin -name "*.so*" -exec cp -vP {} $(DESTDIR)/$(prefix)/lib \;
|
|
+
|
|
+ # documentation
|
|
+ $(INSTALL) -vDm644 ../../doc/* -t $(DESTDIR)/$(SYSCONF_PATH)/html
|
|
|
|
uninstall:
|
|
rm -f $(ipath)/astyle
|