[Git][debian-gis-team/pktools][master] Remove generated files in clean target.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Aug 13 08:14:30 BST 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / pktools


Commits:
f60e6b8a by Bas Couwenberg at 2023-08-13T09:08:43+02:00
Remove generated files in clean target.

- - - - -


3 changed files:

- debian/changelog
- + debian/clean
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -3,6 +3,7 @@ pktools (2.6.7.6+ds-5) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.6.2, no changes.
   * Update URLs to use HTTPS.
   * Bump debhelper compat to 13.
+  * Remove generated files in clean target.
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 18 Jan 2023 17:06:20 +0100
 


=====================================
debian/clean
=====================================
@@ -0,0 +1 @@
+debian/man/*.1


=====================================
debian/rules
=====================================
@@ -27,25 +27,22 @@ MANPAGES:=$(wildcard debian/man/*.*.xml)
 	dh $@ --buildsystem cmake \
 	      --with pkgkde_symbolshelper
 
+execute_before_dh_auto_clean:
+	find $(CURDIR) -name '*.o' -delete
+	find $(CURDIR) -name '*.so*' -delete
+	find $(CURDIR) -name '*.a' -delete
+
 override_dh_auto_configure:
 	dh_auto_configure -- -DBUILD_WITH_FANN=ON \
 	                     -DBUILD_SHARED_LIBS=ON \
 	                     -DINSTALL_LIBRARY_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 
-override_dh_clean:
-	dh_clean debian/man/*.1
-	find $(CURDIR) -name '*.o' -delete
-	find $(CURDIR) -name '*.so*' -delete
-	find $(CURDIR) -name '*.a' -delete
-
-override_dh_auto_build:
+execute_before_dh_auto_build:
 	# Create man pages from DocBook XML
 	for x in $(MANPAGES) ; do \
 	  docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
 	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
 	done
 
-	dh_auto_build
-
 override_dh_makeshlibs:
 	dh_makeshlibs -- -v$(UPSTREAM_VERSION) -c0



View it on GitLab: https://salsa.debian.org/debian-gis-team/pktools/-/commit/f60e6b8af42d54aafbdc75adc9cdf6cb0d327a99

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pktools/-/commit/f60e6b8af42d54aafbdc75adc9cdf6cb0d327a99
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230813/a27467f5/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list