From: Andre Noll <maan@tuebingen.mpg.de>
Date: Wed, 17 Jun 2020 17:59:46 +0000 (+0200)
Subject: build: Mark files generated by lopsub as precious.
X-Git-Tag: v0.2.0~5^2~1
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=0e23fd87097dd74a6b9e1a365c79716ec623e881;p=osl.git

build: Mark files generated by lopsub as precious.

Without this, running make(1) with no arguments after a previous
successful run would re-generate at least the .lsg.c file. This patch
avoids that.
---

diff --git a/Makefile b/Makefile
index a552738..a993946 100644
--- a/Makefile
+++ b/Makefile
@@ -84,6 +84,7 @@ fsck.o: oslfsck.lsg.h
 oslfsck: $(fsck_objects)
 	$(CC) -o $@ $(fsck_objects) $(LDFLAGS) -llopsub
 
+.PRECIOUS: %.lsg.h %.lsg.c
 %.lsg.c: %.suite
 	lopsubgen --gen-c < $<