aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--externals/build/linux/makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/externals/build/linux/makefile b/externals/build/linux/makefile
index 83aaf1e1..a6100db7 100644
--- a/externals/build/linux/makefile
+++ b/externals/build/linux/makefile
@@ -11,7 +11,7 @@ LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
-LINUXINCLUDE = -I. -I.. -I../../../pd/src
+LINUXINCLUDE = -I. -I.. -I../include
%.pd_linux: ../src/%.c
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o "$*.o" -c "../src/$*.c"
@@ -25,9 +25,11 @@ clean:
-rm link.stamp
install-doc:
+ @test -d $(prefix)/lib/pd/doc/5.reference || mkdir -p $(prefix)/lib/pd/doc/5.reference
cp -r ../doc/* $(prefix)/lib/pd/doc/5.reference
install: install-doc
+ @test -d $(prefix)/lib/pd/extra || mkdir -p $(prefix)/lib/pd/extra
install -m644 *.pd_linux $(prefix)/lib/pd/extra