Browse Source

fix installpath on stretch+bionic

pull/20/head
Stefan Schwarz 7 years ago
parent
commit
8ac7ef3a5f
  1. 15
      src/Makefile.xtables

15
src/Makefile.xtables

@ -6,11 +6,16 @@ clean: @@ -6,11 +6,16 @@ clean:
rm -f $(LIBS)
install:
if [ -d /usr/lib/x86_64-linux-gnu/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /usr/lib/x86_64-linux-gnu/xtables; \
else \
install -g root -o root -m 644 $(LIBS) /lib/xtables/ ; \
fi
if [ -d /lib/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /lib/xtables/ ; \
elif [ -d /usr/lib/x86_64-linux-gnu/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /usr/lib/x86_64-linux-gnu/xtables; \
elif [ -d /usr/lib/i386-linux-gnu/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /usr/lib/i386-linux-gnu/xtables; \
else \
echo "Unable to find xtables modules path!"
exit 1
fi
lib%.so: lib%.o
gcc -shared -fPIC -o $@ $^;

Loading…
Cancel
Save