File: rules

package info (click to toggle)
octave-matgeom 1.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 3,288 kB
  • sloc: makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --buildsystem=octave --with=octave

SHRDIR = debian/octave-matgeom/usr/share

execute_after_dh_installdeb:
	for i in geom2d geom3d meshes3d polygons2d ; do				\
            for j in readme changes changelog ; do				\
                f=$(SHRDIR)/octave/packages/matgeom-*/$$i/$$j.txt ;		\
                [ -f $$f ] && mv $$f $(SHRDIR)/doc/octave-matgeom/$$i-$$j.txt ;	\
            done ;								\
	done
        # Remove useless file sedgewick_points.txt, introduced in
        # the upstream version 1.2.3 (see https://savannah.gnu.org/bugs/index.php?60744)
	find debian -name sedgewick_points.txt -exec rm \{} \;