| 1 | diff --git a/Makefile b/Makefile
|
| 2 | index e232a7d..e254ad3 100644
|
| 3 | |
| 4 | |
| 5 | @@ -151,8 +151,8 @@ libastyle.so: $(OBJs)
|
| 6 | @ mkdir -p $(bindir)
|
| 7 | $(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastyle.so.$(MAJORVER) \
|
| 8 | -o $(bindir)/libastyle.so.$(SOLIBVER) $^
|
| 9 | - @ln --symbolic --force libastyle.so.$(SOLIBVER) libastyle.so.$(MAJORVER)
|
| 10 | - @ln --symbolic --force libastyle.so.$(MAJORVER) libastyle.so
|
| 11 | + @ln -sf libastyle.so.$(SOLIBVER) libastyle.so.$(MAJORVER)
|
| 12 | + @ln -sf libastyle.so.$(MAJORVER) libastyle.so
|
| 13 | @mv libastyle.so* $(bindir)/
|
| 14 | @ echo
|
| 15 |
|
| 16 | @@ -161,8 +161,8 @@ libastyled.so: $(OBJsd)
|
| 17 | @ mkdir -p $(bindir)
|
| 18 | $(CXX) -shared $(LDFLAGSd) -Wl,-soname,libastyled.so.$(MAJORVER) \
|
| 19 | -o $(bindir)/libastyled.so.$(SOLIBVER) $^
|
| 20 | - @ln --symbolic --force libastyled.so.$(SOLIBVER) libastyled.so.$(MAJORVER)
|
| 21 | - @ln --symbolic --force libastyled.so.$(MAJORVER) libastyled.so
|
| 22 | + @ln -sf libastyled.so.$(SOLIBVER) libastyled.so.$(MAJORVER)
|
| 23 | + @ln -sf libastyled.so.$(MAJORVER) libastyled.so
|
| 24 | @mv libastyled.so* $(bindir)/
|
| 25 | @ echo
|
| 26 |
|
| 27 | @@ -209,23 +209,18 @@ cleanobj:
|
| 28 | rm -f $(objdir)/*.o
|
| 29 |
|
| 30 | install:
|
| 31 | - $(INSTALL) -m 755 -d $(ipath)
|
| 32 | - @$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
|
| 33 | -
|
| 34 | - @if [ -d $(SYSCONF_PATH)/html ]; then \
|
| 35 | - rm -rf $(SYSCONF_PATH)/html; \
|
| 36 | - fi
|
| 37 | -
|
| 38 | - $(INSTALL) -m 755 -d $(SYSCONF_PATH)
|
| 39 | - @mkdir -p $(SYSCONF_PATH)/html;
|
| 40 | - @for files in astyle.html \
|
| 41 | - install.html \
|
| 42 | - news.html \
|
| 43 | - notes.html \
|
| 44 | - styles.css; \
|
| 45 | - do \
|
| 46 | - $(INSTALL) -m 644 ../../doc/$$files $(SYSCONF_PATH)/html; \
|
| 47 | - done
|
| 48 | + # binary
|
| 49 | + $(INSTALL) -vDm755 -t $(DESTDIR)$(ipath) $(bindir)/astyle
|
| 50 | +
|
| 51 | + # header
|
| 52 | + $(INSTALL) -vDm644 ../../src/astyle.h -t $(DESTDIR)/$(prefix)/include
|
| 53 | +
|
| 54 | + # shared libraries
|
| 55 | + $(INSTALL) -m 755 -d $(DESTDIR)/$(prefix)/lib
|
| 56 | + find bin -name "*.so*" -exec cp -vP {} $(DESTDIR)/$(prefix)/lib \;
|
| 57 | +
|
| 58 | + # documentation
|
| 59 | + $(INSTALL) -vDm644 ../../doc/* -t $(DESTDIR)/$(SYSCONF_PATH)/html
|
| 60 |
|
| 61 | uninstall:
|
| 62 | rm -f $(ipath)/astyle
|
| 63 |
|
| 64 |
|