All pastes #2049328 Raw Edit

gitignore for Minix

public text v1 · immutable
#2049328 ·published 2011-04-22 10:42 UTC
rendered paste body
--- bsd.prog.mk.R	Tue Apr 12 11:52:54 2011
+++ bsd.prog.mk	Fri Apr 22 12:30:44 2011
@@ -15,7 +15,7 @@
 ##### "all" and "depend" targets
 realinstall: realall
 realall: depend
-depend: .gitignore
+depend: ${.CURDIR}/.gitignore
 
 ##### Basic targets
 realinstall:	proginstall scriptsinstall
@@ -383,7 +383,7 @@
 	${INSTALL} ${INSTALLFLAGS} ${PROG}
 .endif
 
-.gitignore: Makefile
-	echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >.gitignore
+${.CURDIR}/.gitignore: Makefile
+	echo $(CLEANFILES) $(PROGS) | tr ' ' '\n' >${.TARGET}
 
 .endif	# HOSTPROG