File: rules

package info (click to toggle)
aspcud 1%3A1.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 69,864 kB
  • sloc: cpp: 17,012; ansic: 4,888; yacc: 182; sh: 113; python: 83; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

%:
	dh $@

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
override_dh_auto_configure:
       $(CC_FOR_BUILD) -o debian/lemon lemon/lemon.c
       printf 'add_executable(lemon IMPORTED GLOBAL)\nset_property(TARGET lemon
PROPERTY IMPORTED_LOCATION "$(CURDIR)/debian/lemon")\n' > debian/lemon.cmake
       dh_auto_configure -- -DIMPORT_LEMON=$(CURDIR)/debian/lemon.cmake
endif

override_dh_auto_clean:
	-rm -rf build/release/*