File: clean-without-gprclean.diff

package info (click to toggle)
libtexttools 2.1.0-26
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 964 kB
  • sloc: ada: 11,394; ansic: 529; makefile: 104; sed: 75; sh: 12
file content (27 lines) | stat: -rw-r--r-- 968 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: the clean target should not require installation of gprbuild
Author: Nicolas Boulenguez <nicolas@debian.org>

--- a/Makefile
+++ b/Makefile
@@ -89,10 +89,9 @@
 # recipe, and will be found in the default system location after
 # installation.
 
-clean:: examples/examples.gpr texttools.gpr
-	gprclean $< -XKIND=static
-	rm -f $^
-# We need to create them for gnatclean, then suppress it as the last action.
+clean::
+	cd examples && rm -f *.ali *.bexch *.o b__*.ad[bs] alert basic2 basic \
+	  listinfo2 listinfo os_demo scrollable try_unix uio2_demo uio_demo
 
 gnat_version != gnatmake --version | sed 's/.* \([0-9]\+\).*/\1/;q'
 build-dynamic build-static test: default.cgpr
@@ -135,5 +134,7 @@
 	 $(foreach var,ADAFLAGS CFLAGS LDFLAGS LDLIBS SOVERSION, \
 	   -e 's%$(var)%$(subst $(space),"$(comma) ",$($(var)))%') \
 	 > $@
+clean::
+	rm -f texttools.gpr examples/examples.gpr
 
 .PHONY: build build-dynamic build-static clean install test uninstall