Browse Source

fix installpath on stretch+bionic

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

15
src/Makefile.xtables

@ -6,11 +6,16 @@ clean:
rm -f $(LIBS) rm -f $(LIBS)
install: install:
if [ -d /usr/lib/x86_64-linux-gnu/xtables ]; then \ if [ -d /lib/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /usr/lib/x86_64-linux-gnu/xtables; \ install -g root -o root -m 644 $(LIBS) /lib/xtables/ ; \
else \ elif [ -d /usr/lib/x86_64-linux-gnu/xtables ]; then \
install -g root -o root -m 644 $(LIBS) /lib/xtables/ ; \ install -g root -o root -m 644 $(LIBS) /usr/lib/x86_64-linux-gnu/xtables; \
fi 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 lib%.so: lib%.o
gcc -shared -fPIC -o $@ $^; gcc -shared -fPIC -o $@ $^;

Loading…
Cancel
Save