summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2016-12-22 00:26:01 +0100
committerJ08nY2016-12-22 00:26:01 +0100
commit9cd334df69a007f1f224c3cda623da6e7bf6184e (patch)
tree857f9934f030ae762a6bc6cd1188acc726494d7a
parent334e31ad12911073318af8641a5b7aeedd992d0a (diff)
downloadecgen-9cd334df69a007f1f224c3cda623da6e7bf6184e.tar.gz
ecgen-9cd334df69a007f1f224c3cda623da6e7bf6184e.tar.zst
ecgen-9cd334df69a007f1f224c3cda623da6e7bf6184e.zip
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1db5d6a..a32a853 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ all: ecgen
ecgen: ecgen.o $(GPO)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-gp2c: $(GPC)
+gp2c: $(GPC) $(GPH)
$(GPO): $(GPC) $(GPH)
$(CC) $(GP_CFLAGS) -c -o $@ $< $(LIBS)
@@ -31,11 +31,13 @@ $(GPO): $(GPC) $(GPH)
%.h %.c: %.gp
$(GP2C) $*.gp $(GPFLAGS) 2>/dev/null | { sed -u '/\/\*End of prototype\*\//q' >"$*.h"; echo '#include "$*.h"' >"$*.c"; cat >>"$*.c"; }
-.PHONY: clean clean-gp
+.PHONY: clean-all clean clean-gp
+
+clean-all: clean clean-gp
clean:
rm -f ecgen
- rm *.o
+ rm -f *.o
clean-gp:
rm -f $(GPH)