Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
		
			
				
	
	
		
			25 lines
		
	
	
		
			621 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			621 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| DIR=	${LIBEXECDIR}/net
 | |
| SRCS=	ifconfig.sh.in ${SRCS-${OS}}
 | |
| INC=	dhclient.sh dhcpcd.sh ifconfig.sh macchanger.sh macnet.sh \
 | |
| 	ssidnet.sh system.sh wpa_supplicant.sh ${INC-${OS}}
 | |
| 
 | |
| MK=	../mk
 | |
| include ${MK}/os.mk
 | |
| 
 | |
| SRCS-FreeBSD=	iwconfig.sh.in
 | |
| INC-FreeBSD=	iwconfig.sh
 | |
| 
 | |
| SRCS-Linux=	iwconfig.sh.in
 | |
| INC-Linux=	adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
 | |
| 		ccwgroup.sh clip.sh ethtool.sh iproute2.sh ifplugd.sh ip6to4.sh \
 | |
| 		ipppd.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh udhcpc.sh \
 | |
| 		vlan.sh macvlan.sh
 | |
| 
 | |
| SRCS-NetBSD=
 | |
| INC-NetBSD=	ifwatchd.sh
 | |
| 
 | |
| %.sh: %.sh${SFX}
 | |
| 	${CP} $< $@
 | |
| 
 | |
| include ${MK}/scripts.mk
 |