freebsd-ports/sysutils/heirloom/files/patch-nawk_Makefile.mk
Alexey Dokuchaev 55b08b05b3 Try a little harder to sanitize the builds: now ensure it builds not only in
parallel mode (-jX), but with disabled make jobs as well.  While here, evict
the trailing spaces at EOL in port description, and reindent it a bit.

Reported by:	bdrewery
2013-08-30 15:15:51 +00:00

30 lines
917 B
Makefile

--- nawk/Makefile.mk.orig 2005-02-09 23:58:39.000000000 +0800
+++ nawk/Makefile.mk 2013-07-26 18:01:39.000000000 +0800
@@ -12,23 +12,22 @@
$(LD) $(LDFLAGS) awk.g.2001.o $(OBJ) version_su3.o $(LUXRE) -lm $(LCOMMON) $(LWCHAR) $(LIBS) -o awk_su3
awk.g.c: awk.g.y
- $(YACC) -d awk.g.y
- mv -f y.tab.c awk.g.c
+ $(YACC) -d awk.g.y && mv -f y.tab.c awk.g.c
(echo '1i'; echo '#include <inttypes.h>'; echo '.'; echo 'w';) | \
ed -s y.tab.h
+y.tab.h: awk.g.y | awk.g.c
awk.g.2001.c: awk.g.2001.y awk.g.c
- $(YACC) awk.g.2001.y
- mv -f y.tab.c awk.g.2001.c
+ $(YACC) awk.g.2001.y && mv -f y.tab.c awk.g.2001.c
awk.g.2001.y: awk.g.y
sed -f rerule.sed <awk.g.y >awk.g.2001.y
maketab: maketab.o
$(HOSTCC) maketab.o -o maketab
- ./maketab > proctab.c
proctab.c: maketab
+ ./maketab > proctab.c
awk.g.o: awk.g.c
$(CC) $(CFLAGSS) $(CPPFLAGS) $(XO5FL) $(LARGEF) $(IWCHAR) $(ICOMMON) $(IUXRE) -c awk.g.c