Skip to content
This repository
Browse code

Mac compatability in Makefiles

  • Loading branch information...
commit e7f31d6ced5beeb5e267bb02719339b4ecb2717e 1 parent 7d72d1c
Micha Gorelick authored September 11, 2012
3  ps_to_file/Makefile
@@ -12,7 +12,8 @@ ps_to_file: ps_to_file.c
12 12
 	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
13 13
 
14 14
 install:
15  
-	/usr/bin/install -D ps_to_file $(TARGET)/bin/ps_to_file
  15
+	/usr/bin/install -d $(TARGET)/bin/
  16
+	/usr/bin/install ps_to_file $(TARGET)/bin/
16 17
 
17 18
 clean:
18 19
 	rm -f *.o *.a ps_to_file
3  ps_to_http/Makefile
@@ -12,7 +12,8 @@ ps_to_http: ps_to_http.c
12 12
 	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
13 13
 
14 14
 install:
15  
-	/usr/bin/install -D ps_to_http $(TARGET)/bin/ps_to_http
  15
+	/usr/bin/install -d $(TARGET)/bin/
  16
+	/usr/bin/install ps_to_http $(TARGET)/bin/
16 17
 
17 18
 clean:
18 19
 	rm -rf *.o ps_to_http *.dSYM

0 notes on commit e7f31d6

Please sign in to comment.
Something went wrong with that request. Please try again.