aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-11-14 17:38:33 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-11-14 21:00:32 +0200
commit433bb35ceeb64e6442e10491f72f635d5ebe7bc0 (patch)
treeed17754629f2fa3ddb5ded1aaa3d28c58ddf7bd7 /Makefile
parent6f4542fb9ab491912532468766b0f0f4adb0cb67 (diff)
downloadgimp-plugin-img-433bb35ceeb64e6442e10491f72f635d5ebe7bc0.tar.gz
Update Script-Fu
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8dacd2b..52da294 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ MAIN = plugin-img
GIMPTOOL = gimptool-2.0
GIMP = gimp
+GIMPCONSOLE = gimp-console
CC = cc
LD = cc
CFLAGS = -O2 -Wall -Wextra
@@ -18,13 +19,15 @@ $(OBJ): $(HDR) Makefile
.c.o:
$(CC) `$(GIMPTOOL) --cflags` $(CFLAGS) -c $< -o $@
-.PHONY: test
-test: install
- gimp samples/*.img
+.PHONY: view
+view: install
+ $(GIMP) samples/*.img
-.PHONY: test-fu
-test-fu: install img-fu
- $(GIMP) --no-interface --batch - < img-fu
+.PHONY: test
+test: test.scm install
+ rm -f samples/success
+ $(GIMPCONSOLE) --no-interface --batch - < $<
+ test -f samples/success
.PHONY: install
install: $(MAIN)
@@ -37,4 +40,6 @@ uninstall:
.PHONY: clean
clean:
rm -f *.o *.i *.s $(MAIN)
+ rm -f samples/recoded-*
+ rm -f samples/success