Bug 202656 - make(1) prerequisite not assigned to target if target has ./ prefix
Summary: make(1) prerequisite not assigned to target if target has ./ prefix
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 14:28 UTC by Steffen Nurpmeso
Modified: 2015-08-25 14:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Nurpmeso 2015-08-25 14:28:31 UTC
Makefile contains

  $(AMALGAM_TARGET) mime_types.o: mime_types.h

make(1) produces

==========
  CC ./mime_types.c
./mime_types.c:95:10: fatal error: 'mime_types.h' file not found
#include "mime_types.h"
         ^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/home/sdaoden/usr/src/nail.git
*** Error code 1

Stop.
make: stopped in /usr/home/sdaoden/usr/src/nail.git
==========

It works if i add a ./mime_types.o target.
I guess a basename(3) should be added somewhere.